Search in sources :

Example 1 with EmptyMemberDeclaration

use of com.github.javaparser.ast.body.EmptyMemberDeclaration in project javaparser by javaparser.

the class CloneVisitor method visit.

@Override
public Node visit(EmptyMemberDeclaration _n, Object _arg) {
    JavadocComment javaDoc = cloneNodes(_n.getJavaDoc(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);
    EmptyMemberDeclaration r = new EmptyMemberDeclaration(_n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn());
    r.setComment(comment);
    return r;
}
Also used : JavadocComment(com.github.javaparser.ast.comments.JavadocComment) BlockComment(com.github.javaparser.ast.comments.BlockComment) LineComment(com.github.javaparser.ast.comments.LineComment) Comment(com.github.javaparser.ast.comments.Comment) JavadocComment(com.github.javaparser.ast.comments.JavadocComment) EmptyMemberDeclaration(com.github.javaparser.ast.body.EmptyMemberDeclaration)

Aggregations

EmptyMemberDeclaration (com.github.javaparser.ast.body.EmptyMemberDeclaration)1 BlockComment (com.github.javaparser.ast.comments.BlockComment)1 Comment (com.github.javaparser.ast.comments.Comment)1 JavadocComment (com.github.javaparser.ast.comments.JavadocComment)1 LineComment (com.github.javaparser.ast.comments.LineComment)1