@Override public Node visit(EnumConstantDeclaration _n, Object _arg) { JavadocComment javaDoc = cloneNodes(_n.getJavaDoc(), _arg); List<AnnotationExpr> annotations = visit(_n.getAnnotations(), _arg); List<Expression> args = visit(_n.getArgs(), _arg); List<BodyDeclaration> classBody = visit(_n.getClassBody(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); EnumConstantDeclaration r = new EnumConstantDeclaration( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), annotations, _n.getName(), args, classBody ); r.setComment(comment); return r; }