コード例 #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());
    }
  }
コード例 #2
0
 public void visitBlock(Block node) {
   for (BlockStatementIterator it = node.getBlockStatements().getIterator(); it.hasNext(); ) {
     visit(it.getNext());
   }
 }