Search in sources :

Example 1 with EmptyTypeDeclaration

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

the class CloneVisitor method visit.

@Override
public Node visit(EmptyTypeDeclaration _n, Object _arg) {
    JavadocComment javaDoc = cloneNodes(_n.getJavaDoc(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);
    EmptyTypeDeclaration r = new EmptyTypeDeclaration(_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) EmptyTypeDeclaration(com.github.javaparser.ast.body.EmptyTypeDeclaration)

Aggregations

EmptyTypeDeclaration (com.github.javaparser.ast.body.EmptyTypeDeclaration)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