예제 #1
0
 public void visit(BlockStmt n, Object arg) {
   if (n.getStmts() != null) {
     for (Statement s : n.getStmts()) {
       s.accept(this, arg);
     }
   }
 }
예제 #2
0
 public void visit(SwitchEntryStmt n, Object arg) {
   if (n.getLabel() != null) {
     n.getLabel().accept(this, arg);
   } else {
   }
   if (n.getStmts() != null) {
     for (Statement s : n.getStmts()) {
       s.accept(this, arg);
     }
   }
 }