@Override public void visitAnnotations(AnnotatedNode node) { boolean oldInAnnotation = inAnnotation; inAnnotation = true; super.visitAnnotations(node); inAnnotation = oldInAnnotation; }
@Override protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor) { this.currentMethod = node; super.visitConstructorOrMethod(node, isConstructor); this.currentMethod = null; }
public void visitClass(ClassNode node, SourceUnit source) { this.currentClass = node; this.source = source; super.visitClass(node); }