Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2003-2007 the original author or authors.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    *     http://www.apache.org/licenses/LICENSE-2.0
    *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.codehaus.groovy.antlr.treewalker;
  
  import java.util.*;
  
A composite of many visitors. Any call to a method from Visitor will invoke each visitor in turn, and reverse the invocation order on a closing visit. i.e. with the list of visitors = [a,b,c] composite.visitDefault() would... call on the opening visit - a.visitDefault() then b.visitDefault() then c.visitDefault() call on the closing visit - c.visitDefault() then b.visitDefault() then a.visitDefault()

Author(s):
Jeremy Rayner
Version:
$Revision: 7922 $
  
  
  public class CompositeVisitor implements Visitor{
      final List visitors;
      final List backToFrontVisitors;
      private final Stack stack;

    
A composite of the supplied list of antlr AST visitors.

Parameters:
visitors a List of implementations of the Visitor interface
  
      public CompositeVisitor(List visitors) {
          this. = visitors;
          this. = new Stack();
           = new ArrayList();
          .addAll(visitors);
          Collections.reverse();
      }
  
      private Iterator itr(int visit) {
          Iterator itr=.iterator();
          if (visit == ) {
              itr = .iterator();
          }
          return itr;
      }
  
      public void setUp() {
          Iterator itr = .iterator();
          while (itr.hasNext()) {((Visitor)itr.next()).setUp();}
      }
  
      public void visitAbstract(GroovySourceAST tint visit) {
          Iterator itr = itr(visit);
          while (itr.hasNext()) {((Visitor)itr.next()).visitAbstract(t,visit);}
      }
  
      public void visitAnnotation(GroovySourceAST tint visit) {
          Iterator itr = itr(visit);
          while (itr.hasNext()) {((Visitor)itr.next()).visitAnnotation(t,visit);}
      }
  
      public void visitAnnotations(GroovySourceAST tint visit) {
          Iterator itr = itr(visit);
          while (itr.hasNext()) {((Visitor)itr.next()).visitAnnotations(t,visit);}
      }
  
      public void visitAnnotationArrayInit(GroovySourceAST tint visit) {
          Iterator itr = itr(visit);
          while (itr.hasNext()) {((Visitor)itr.next()).visitAnnotationArrayInit(t,visit);}
      }
  
      public void visitAnnotationDef(GroovySourceAST tint visit) {
          Iterator itr = itr(visit);
          while (itr.hasNext()) {((Visitor)itr.next()).visitAnnotationDef(t,visit);}
      }
  
      public void visitAnnotationFieldDef(GroovySourceAST tint visit) {
          Iterator itr = itr(visit);
          while (itr.hasNext()) {((Visitor)itr.next()).visitAnnotationFieldDef(t,visit);}
      }
  
      public void visitAnnotationMemberValuePair(GroovySourceAST tint visit) {
          Iterator itr = itr(visit);
          while (itr.hasNext()) {((Visitor)itr.next()).visitAnnotationMemberValuePair(t,visit);}
      }
 
     public void visitArrayDeclarator(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitArrayDeclarator(t,visit);}
     }
 
     public void visitAssign(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitAssign(t,visit);}
     }
 
     public void visitAt(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitAt(t,visit);}
     }
 
     public void visitBand(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitBand(t,visit);}
     }
 
     public void visitBandAssign(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitBandAssign(t,visit);}
     }
 
     public void visitBigSuffix(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitBigSuffix(t,visit);}
     }
 
     public void visitBlock(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitBlock(t,visit);}
     }
 
     public void visitBnot(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitBnot(t,visit);}
     }
 
     public void visitBor(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitBor(t,visit);}
     }
 
     public void visitBorAssign(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitBorAssign(t,visit);}
     }
 
     public void visitBsr(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitBsr(t,visit);}
     }
 
     public void visitBsrAssign(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitBsrAssign(t,visit);}
     }
 
     public void visitBxor(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitBxor(t,visit);}
     }
 
     public void visitBxorAssign(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitBxorAssign(t,visit);}
     }
 
     public void visitCaseGroup(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitCaseGroup(t,visit);}
     }
 
     public void visitClassDef(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitClassDef(t,visit);}
     }
 
     public void visitClosedBlock(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitClosedBlock(t,visit);}
     }
 
 	public void visitClosureList(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitClosureList(t,visit);}
 	}
 
     public void visitClosureOp(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitClosureOp(t,visit);}
     }
 
     public void visitColon(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitColon(t,visit);}
     }
 
     public void visitComma(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitComma(t,visit);}
     }
 
     public void visitCompareTo(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitCompareTo(t,visit);}
     }
 
     public void visitCtorCall(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitCtorCall(t,visit);}
     }
 
     public void visitCtorIdent(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitCtorIdent(t,visit);}
     }
 
     public void visitDec(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitDec(t,visit);}
     }
 
     public void visitDigit(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitDigit(t,visit);}
     }
 
     public void visitDiv(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitDiv(t,visit);}
     }
 
     public void visitDivAssign(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitDivAssign(t,visit);}
     }
 
     public void visitDollar(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitDollar(t,visit);}
     }
 
     public void visitDot(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitDot(t,visit);}
     }
 
     public void visitDynamicMember(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitDynamicMember(t,visit);}
     }
 
     public void visitElist(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitElist(t,visit);}
     }
 
     public void visitEmptyStat(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitEmptyStat(t,visit);}
     }
 
     public void visitEnumConstantDef(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitEnumConstantDef(t,visit);}
     }
 
     public void visitEnumDef(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitEnumDef(t,visit);}
     }
 
     public void visitEof(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitEof(t,visit);}
     }
 
     public void visitEqual(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitEqual(t,visit);}
     }
 
     public void visitEsc(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitEsc(t,visit);}
     }
 
     public void visitExponent(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitExponent(t,visit);}
     }
 
     public void visitExpr(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitExpr(t,visit);}
     }
 
     public void visitExtendsClause(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitExtendsClause(t,visit);}
     }
 
     public void visitFinal(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitFinal(t,visit);}
     }
 
     public void visitFloatSuffix(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitFloatSuffix(t,visit);}
     }
 
     public void visitForCondition(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitForCondition(t,visit);}
     }
 
     public void visitForEachClause(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitForEachClause(t,visit);}
     }
 
     public void visitForInit(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitForInit(t,visit);}
     }
 
     public void visitForInIterable(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitForInIterable(t,visit);}
     }
 
     public void visitForIterator(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitForIterator(t,visit);}
     }
 
     public void visitGe(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitGe(t,visit);}
     }
 
     public void visitGt(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitGt(t,visit);}
     }
 
     public void visitHexDigit(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitHexDigit(t,visit);}
     }
 
     public void visitIdent(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitIdent(t,visit);}
     }
 
     public void visitImplementsClause(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitImplementsClause(t,visit);}
     }
 
     public void visitImplicitParameters(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitImplicitParameters(t,visit);}
     }
 
     public void visitImport(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitImport(t,visit);}
     }
 
     public void visitInc(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitInc(t,visit);}
     }
 
     public void visitIndexOp(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitIndexOp(t,visit);}
     }
 
     public void visitInstanceInit(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitInstanceInit(t,visit);}
     }
 
     public void visitInterfaceDef(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitInterfaceDef(t,visit);}
     }
 
     public void visitLabeledArg(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLabeledArg(t,visit);}
     }
 
     public void visitLabeledStat(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLabeledStat(t,visit);}
     }
 
     public void visitLand(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLand(t,visit);}
     }
 
     public void visitLbrack(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLbrack(t,visit);}
     }
 
     public void visitLcurly(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLcurly(t,visit);}
     }
 
     public void visitLe(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLe(t,visit);}
     }
 
     public void visitLetter(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLetter(t,visit);}
     }
 
     public void visitListConstructor(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitListConstructor(t,visit);}
     }
 
     public void visitLiteralAs(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralAs(t,visit);}
     }
 
     public void visitLiteralAssert(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralAssert(t,visit);}
     }
 
     public void visitLiteralBoolean(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralBoolean(t,visit);}
     }
 
     public void visitLiteralBreak(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralBreak(t,visit);}
     }
 
     public void visitLiteralByte(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralByte(t,visit);}
     }
 
     public void visitLiteralCase(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralCase(t,visit);}
     }
 
     public void visitLiteralCatch(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralCatch(t,visit);}
     }
 
     public void visitLiteralChar(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralChar(t,visit);}
     }
 
     public void visitLiteralClass(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralClass(t,visit);}
     }
 
     public void visitLiteralContinue(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralContinue(t,visit);}
     }
 
     public void visitLiteralDef(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralDef(t,visit);}
     }
 
     public void visitLiteralDefault(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralDefault(t,visit);}
     }
 
     public void visitLiteralDouble(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralDouble(t,visit);}
     }
 
     public void visitLiteralElse(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralElse(t,visit);}
     }
 
     public void visitLiteralEnum(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralEnum(t,visit);}
     }
 
     public void visitLiteralExtends(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralExtends(t,visit);}
     }
 
     public void visitLiteralFalse(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralFalse(t,visit);}
     }
 
     public void visitLiteralFinally(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralFinally(t,visit);}
     }
 
     public void visitLiteralFloat(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralFloat(t,visit);}
     }
 
     public void visitLiteralFor(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralFor(t,visit);}
     }
 
     public void visitLiteralIf(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralIf(t,visit);}
     }
 
     public void visitLiteralImplements(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralImplements(t,visit);}
     }
 
     public void visitLiteralImport(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralImport(t,visit);}
     }
 
     public void visitLiteralIn(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralIn(t,visit);}
     }
 
     public void visitLiteralInstanceof(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralInstanceof(t,visit);}
     }
 
     public void visitLiteralInt(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralInt(t,visit);}
     }
 
     public void visitLiteralInterface(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralInterface(t,visit);}
     }
 
     public void visitLiteralLong(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralLong(t,visit);}
     }
 
     public void visitLiteralNative(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralNative(t,visit);}
     }
 
     public void visitLiteralNew(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralNew(t,visit);}
     }
 
     public void visitLiteralNull(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralNull(t,visit);}
     }
 
     public void visitLiteralPackage(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralPackage(t,visit);}
     }
 
     public void visitLiteralPrivate(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralPrivate(t,visit);}
     }
 
     public void visitLiteralProtected(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralProtected(t,visit);}
     }
 
     public void visitLiteralPublic(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralPublic(t,visit);}
     }
 
     public void visitLiteralReturn(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralReturn(t,visit);}
     }
 
     public void visitLiteralShort(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralShort(t,visit);}
     }
 
     public void visitLiteralStatic(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralStatic(t,visit);}
     }
 
     public void visitLiteralSuper(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralSuper(t,visit);}
     }
 
     public void visitLiteralSwitch(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralSwitch(t,visit);}
     }
 
     public void visitLiteralSynchronized(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralSynchronized(t,visit);}
     }
 
     public void visitLiteralThis(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralThis(t,visit);}
     }
 
     public void visitLiteralThreadsafe(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralThreadsafe(t,visit);}
     }
 
     public void visitLiteralThrow(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralThrow(t,visit);}
     }
 
     public void visitLiteralThrows(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralThrows(t,visit);}
     }
 
     public void visitLiteralTransient(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralTransient(t,visit);}
     }
 
     public void visitLiteralTrue(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralTrue(t,visit);}
     }
 
     public void visitLiteralTry(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralTry(t,visit);}
     }
 
     public void visitLiteralVoid(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralVoid(t,visit);}
     }
 
     public void visitLiteralVolatile(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralVolatile(t,visit);}
     }
 
     public void visitLiteralWhile(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLiteralWhile(t,visit);}
     }
 
     public void visitLnot(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLnot(t,visit);}
     }
 
     public void visitLor(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLor(t,visit);}
     }
 
     public void visitLparen(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLparen(t,visit);}
     }
 
     public void visitLt(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitLt(t,visit);}
     }
 
     public void visitMapConstructor(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitMapConstructor(t,visit);}
     }
 
     public void visitMemberPointer(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitMemberPointer(t,visit);}
     }
 
     public void visitMethodCall(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitMethodCall(t,visit);}
     }
 
     public void visitMethodDef(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitMethodDef(t,visit);}
     }
 
     public void visitMinus(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitMinus(t,visit);}
     }
 
     public void visitMinusAssign(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitMinusAssign(t,visit);}
     }
 
     public void visitMlComment(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitMlComment(t,visit);}
     }
 
     public void visitMod(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitMod(t,visit);}
     }
 
     public void visitModifiers(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitModifiers(t,visit);}
     }
 
     public void visitModAssign(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitModAssign(t,visit);}
     }
 
     public void visitNls(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitNls(t,visit);}
     }
 
     public void visitNotEqual(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitNotEqual(t,visit);}
     }
 
     public void visitNullTreeLookahead(GroovySourceAST tint visit) {
         Iterator itr = itr(visit);
         while (itr.hasNext()) {((Visitor)itr.next()).visitNullTreeLookahead(