Пример #1
0
 /** @see Traverser */
 public void traverseSwitchStatement(Java.SwitchStatement ss) throws EX {
   ss.condition.accept((Visitor.RvalueVisitor<Void, EX>) this.cv);
   for (Java.SwitchStatement.SwitchBlockStatementGroup sbsg : ss.sbsgs) {
     for (Java.Rvalue cl : sbsg.caseLabels) cl.accept((Visitor.RvalueVisitor<Void, EX>) this.cv);
     for (Java.BlockStatement bs : sbsg.blockStatements) bs.accept(this.cv);
     this.traverseLocated(sbsg);
   }
   this.traverseBreakableStatement(ss);
 }
Пример #2
0
 /** @see Traverser */
 public void traverseFunctionDeclarator(Java.FunctionDeclarator fd) throws EX {
   this.traverseFormalParameters(fd.formalParameters);
   if (fd.optionalStatements != null) {
     for (Java.BlockStatement bs : fd.optionalStatements) bs.accept(this.cv);
   }
 }
Пример #3
0
 /** @see Traverser */
 public void traverseBlock(Java.Block b) throws EX {
   for (Java.BlockStatement bs : b.statements) bs.accept(this.cv);
   this.traverseStatement(b);
 }
Пример #4
0
 /** @see Traverser */
 public void traverseClassDeclaration(Java.ClassDeclaration cd) throws EX {
   for (Java.ConstructorDeclarator ctord : cd.constructors) ctord.accept(this.cv);
   for (Java.BlockStatement vdoi : cd.variableDeclaratorsAndInitializers) vdoi.accept(this.cv);
   this.traverseAbstractTypeDeclaration(cd);
 }