Exemplo n.º 1
0
  public void visitCaseBlock(CaseBlock node) {
    for (ExpressionIterator exprIt = node.getCases().getIterator(); exprIt.hasNext(); ) {
      visit(exprIt.getNext());
    }

    for (BlockStatementIterator stmtIt = node.getBlockStatements().getIterator();
        stmtIt.hasNext(); ) {
      visit(stmtIt.getNext());
    }
  }
Exemplo n.º 2
0
 public void visitBlock(Block node) {
   for (BlockStatementIterator it = node.getBlockStatements().getIterator(); it.hasNext(); ) {
     visit(it.getNext());
   }
 }