예제 #1
0
 @Override
 public boolean visit(MethodDeclaration node) {
   if (isInside(node)) {
     Block body = node.getBody();
     if (body != null) {
       body.accept(this);
     }
     visitBackwards(node.parameters());
     if (node.getAST().apiLevel() >= AST.JLS3) {
       visitBackwards(node.typeParameters());
     }
   }
   return false;
 }
예제 #2
0
 @Override
 public boolean visit(Block node) {
   if (isInside(node)) {
     visitBackwards(node.statements());
   }
   return false;
 }