Class CompositeVisitor
java.lang.Object
org.codehaus.groovy.antlr.treewalker.CompositeVisitor
- All Implemented Interfaces:
Visitor
public class CompositeVisitor extends java.lang.Object implements Visitor
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()
-
Field Summary
Fields inherited from interface org.codehaus.groovy.antlr.treewalker.Visitor
CLOSING_VISIT, OPENING_VISIT, SECOND_VISIT, SUBSEQUENT_VISIT
-
Constructor Summary
Constructors Constructor Description CompositeVisitor(java.util.List visitors)
A composite of the supplied list of antlr AST visitors. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CompositeVisitor
public CompositeVisitor(java.util.List visitors)A composite of the supplied list of antlr AST visitors.- Parameters:
visitors
- a List of implementations of the Visitor interface
-
-
Method Details
-
setUp
public void setUp() -
visitAbstract
- Specified by:
visitAbstract
in interfaceVisitor
-
visitAnnotation
- Specified by:
visitAnnotation
in interfaceVisitor
-
visitAnnotations
- Specified by:
visitAnnotations
in interfaceVisitor
-
visitAnnotationArrayInit
- Specified by:
visitAnnotationArrayInit
in interfaceVisitor
-
visitAnnotationDef
- Specified by:
visitAnnotationDef
in interfaceVisitor
-
visitAnnotationFieldDef
- Specified by:
visitAnnotationFieldDef
in interfaceVisitor
-
visitAnnotationMemberValuePair
- Specified by:
visitAnnotationMemberValuePair
in interfaceVisitor
-
visitArrayDeclarator
- Specified by:
visitArrayDeclarator
in interfaceVisitor
-
visitAssign
- Specified by:
visitAssign
in interfaceVisitor
-
visitAt
-
visitBand
-
visitBandAssign
- Specified by:
visitBandAssign
in interfaceVisitor
-
visitBigSuffix
- Specified by:
visitBigSuffix
in interfaceVisitor
-
visitBlock
- Specified by:
visitBlock
in interfaceVisitor
-
visitBnot
-
visitBor
-
visitBorAssign
- Specified by:
visitBorAssign
in interfaceVisitor
-
visitBsr
-
visitBsrAssign
- Specified by:
visitBsrAssign
in interfaceVisitor
-
visitBxor
-
visitBxorAssign
- Specified by:
visitBxorAssign
in interfaceVisitor
-
visitCaseGroup
- Specified by:
visitCaseGroup
in interfaceVisitor
-
visitClassDef
- Specified by:
visitClassDef
in interfaceVisitor
-
visitClosedBlock
- Specified by:
visitClosedBlock
in interfaceVisitor
-
visitClosureList
- Specified by:
visitClosureList
in interfaceVisitor
-
visitClosureOp
- Specified by:
visitClosureOp
in interfaceVisitor
-
visitColon
- Specified by:
visitColon
in interfaceVisitor
-
visitComma
- Specified by:
visitComma
in interfaceVisitor
-
visitCompareTo
- Specified by:
visitCompareTo
in interfaceVisitor
-
visitCtorCall
- Specified by:
visitCtorCall
in interfaceVisitor
-
visitCtorIdent
- Specified by:
visitCtorIdent
in interfaceVisitor
-
visitDec
-
visitDigit
- Specified by:
visitDigit
in interfaceVisitor
-
visitDiv
-
visitDivAssign
- Specified by:
visitDivAssign
in interfaceVisitor
-
visitDollar
- Specified by:
visitDollar
in interfaceVisitor
-
visitDot
-
visitDynamicMember
- Specified by:
visitDynamicMember
in interfaceVisitor
-
visitElist
- Specified by:
visitElist
in interfaceVisitor
-
visitEmptyStat
- Specified by:
visitEmptyStat
in interfaceVisitor
-
visitEnumConstantDef
- Specified by:
visitEnumConstantDef
in interfaceVisitor
-
visitEnumDef
- Specified by:
visitEnumDef
in interfaceVisitor
-
visitEof
-
visitEqual
- Specified by:
visitEqual
in interfaceVisitor
-
visitEsc
-
visitExponent
- Specified by:
visitExponent
in interfaceVisitor
-
visitExpr
-
visitExtendsClause
- Specified by:
visitExtendsClause
in interfaceVisitor
-
visitFinal
- Specified by:
visitFinal
in interfaceVisitor
-
visitFloatSuffix
- Specified by:
visitFloatSuffix
in interfaceVisitor
-
visitForCondition
- Specified by:
visitForCondition
in interfaceVisitor
-
visitForEachClause
- Specified by:
visitForEachClause
in interfaceVisitor
-
visitForInit
- Specified by:
visitForInit
in interfaceVisitor
-
visitForInIterable
- Specified by:
visitForInIterable
in interfaceVisitor
-
visitForIterator
- Specified by:
visitForIterator
in interfaceVisitor
-
visitGe
-
visitGt
-
visitHexDigit
- Specified by:
visitHexDigit
in interfaceVisitor
-
visitIdent
- Specified by:
visitIdent
in interfaceVisitor
-
visitImplementsClause
- Specified by:
visitImplementsClause
in interfaceVisitor
-
visitImplicitParameters
- Specified by:
visitImplicitParameters
in interfaceVisitor
-
visitImport
- Specified by:
visitImport
in interfaceVisitor
-
visitInc
-
visitIndexOp
- Specified by:
visitIndexOp
in interfaceVisitor
-
visitInstanceInit
- Specified by:
visitInstanceInit
in interfaceVisitor
-
visitInterfaceDef
- Specified by:
visitInterfaceDef
in interfaceVisitor
-
visitLabeledArg
- Specified by:
visitLabeledArg
in interfaceVisitor
-
visitLabeledStat
- Specified by:
visitLabeledStat
in interfaceVisitor
-
visitLand
-
visitLbrack
- Specified by:
visitLbrack
in interfaceVisitor
-
visitLcurly
- Specified by:
visitLcurly
in interfaceVisitor
-
visitLe
-
visitLetter
- Specified by:
visitLetter
in interfaceVisitor
-
visitListConstructor
- Specified by:
visitListConstructor
in interfaceVisitor
-
visitLiteralAs
- Specified by:
visitLiteralAs
in interfaceVisitor
-
visitLiteralAssert
- Specified by:
visitLiteralAssert
in interfaceVisitor
-
visitLiteralBoolean
- Specified by:
visitLiteralBoolean
in interfaceVisitor
-
visitLiteralBreak
- Specified by:
visitLiteralBreak
in interfaceVisitor
-
visitLiteralByte
- Specified by:
visitLiteralByte
in interfaceVisitor
-
visitLiteralCase
- Specified by:
visitLiteralCase
in interfaceVisitor
-
visitLiteralCatch
- Specified by:
visitLiteralCatch
in interfaceVisitor
-
visitLiteralChar
- Specified by:
visitLiteralChar
in interfaceVisitor
-
visitLiteralClass
- Specified by:
visitLiteralClass
in interfaceVisitor
-
visitLiteralContinue
- Specified by:
visitLiteralContinue
in interfaceVisitor
-
visitLiteralDef
- Specified by:
visitLiteralDef
in interfaceVisitor
-
visitLiteralDefault
- Specified by:
visitLiteralDefault
in interfaceVisitor
-
visitLiteralDouble
- Specified by:
visitLiteralDouble
in interfaceVisitor
-
visitLiteralElse
- Specified by:
visitLiteralElse
in interfaceVisitor
-
visitLiteralEnum
- Specified by:
visitLiteralEnum
in interfaceVisitor
-
visitLiteralExtends
- Specified by:
visitLiteralExtends
in interfaceVisitor
-
visitLiteralFalse
- Specified by:
visitLiteralFalse
in interfaceVisitor
-
visitLiteralFinally
- Specified by:
visitLiteralFinally
in interfaceVisitor
-
visitLiteralFloat
- Specified by:
visitLiteralFloat
in interfaceVisitor
-
visitLiteralFor
- Specified by:
visitLiteralFor
in interfaceVisitor
-
visitLiteralIf
- Specified by:
visitLiteralIf
in interfaceVisitor
-
visitLiteralImplements
- Specified by:
visitLiteralImplements
in interfaceVisitor
-
visitLiteralImport
- Specified by:
visitLiteralImport
in interfaceVisitor
-
visitLiteralIn
- Specified by:
visitLiteralIn
in interfaceVisitor
-
visitLiteralInstanceof
- Specified by:
visitLiteralInstanceof
in interfaceVisitor
-
visitLiteralInt
- Specified by:
visitLiteralInt
in interfaceVisitor
-
visitLiteralInterface
- Specified by:
visitLiteralInterface
in interfaceVisitor
-
visitLiteralLong
- Specified by:
visitLiteralLong
in interfaceVisitor
-
visitLiteralNative
- Specified by:
visitLiteralNative
in interfaceVisitor
-
visitLiteralNew
- Specified by:
visitLiteralNew
in interfaceVisitor
-
visitLiteralNull
- Specified by:
visitLiteralNull
in interfaceVisitor
-
visitLiteralPackage
- Specified by:
visitLiteralPackage
in interfaceVisitor
-
visitLiteralPrivate
- Specified by:
visitLiteralPrivate
in interfaceVisitor
-
visitLiteralProtected
- Specified by:
visitLiteralProtected
in interfaceVisitor
-
visitLiteralPublic
- Specified by:
visitLiteralPublic
in interfaceVisitor
-
visitLiteralReturn
- Specified by:
visitLiteralReturn
in interfaceVisitor
-
visitLiteralShort
- Specified by:
visitLiteralShort
in interfaceVisitor
-
visitLiteralStatic
- Specified by:
visitLiteralStatic
in interfaceVisitor
-
visitLiteralSuper
- Specified by:
visitLiteralSuper
in interfaceVisitor
-
visitLiteralSwitch
- Specified by:
visitLiteralSwitch
in interfaceVisitor
-
visitLiteralSynchronized
- Specified by:
visitLiteralSynchronized
in interfaceVisitor
-
visitLiteralThis
- Specified by:
visitLiteralThis
in interfaceVisitor
-
visitLiteralThreadsafe
- Specified by:
visitLiteralThreadsafe
in interfaceVisitor
-
visitLiteralThrow
- Specified by:
visitLiteralThrow
in interfaceVisitor
-
visitLiteralThrows
- Specified by:
visitLiteralThrows
in interfaceVisitor
-
visitLiteralTransient
- Specified by:
visitLiteralTransient
in interfaceVisitor
-
visitLiteralTrue
- Specified by:
visitLiteralTrue
in interfaceVisitor
-
visitLiteralTry
- Specified by:
visitLiteralTry
in interfaceVisitor
-
visitLiteralVoid
- Specified by:
visitLiteralVoid
in interfaceVisitor
-
visitLiteralVolatile
- Specified by:
visitLiteralVolatile
in interfaceVisitor
-
visitLiteralWhile
- Specified by:
visitLiteralWhile
in interfaceVisitor
-
visitLnot
-
visitLor
-
visitLparen
- Specified by:
visitLparen
in interfaceVisitor
-
visitLt
-
visitMapConstructor
- Specified by:
visitMapConstructor
in interfaceVisitor
-
visitMemberPointer
- Specified by:
visitMemberPointer
in interfaceVisitor
-
visitMethodCall
- Specified by:
visitMethodCall
in interfaceVisitor
-
visitMethodDef
- Specified by:
visitMethodDef
in interfaceVisitor
-
visitMinus
- Specified by:
visitMinus
in interfaceVisitor
-
visitMinusAssign
- Specified by:
visitMinusAssign
in interfaceVisitor
-
visitMlComment
- Specified by:
visitMlComment
in interfaceVisitor
-
visitMod
-
visitModifiers
- Specified by:
visitModifiers
in interfaceVisitor
-
visitModAssign
- Specified by:
visitModAssign
in interfaceVisitor
-
visitMultiCatch
- Specified by:
visitMultiCatch
in interfaceVisitor
-
visitMultiCatchTypes
- Specified by:
visitMultiCatchTypes
in interfaceVisitor
-
visitNls
-
visitNotEqual
- Specified by:
visitNotEqual
in interfaceVisitor
-
visitNullTreeLookahead
- Specified by:
visitNullTreeLookahead
in interfaceVisitor
-
visitNumBigDecimal
- Specified by:
visitNumBigDecimal
in interfaceVisitor
-
visitNumBigInt
- Specified by:
visitNumBigInt
in interfaceVisitor
-
visitNumDouble
- Specified by:
visitNumDouble
in interfaceVisitor
-
visitNumFloat
- Specified by:
visitNumFloat
in interfaceVisitor
-
visitNumInt
- Specified by:
visitNumInt
in interfaceVisitor
-
visitNumLong
- Specified by:
visitNumLong
in interfaceVisitor
-
visitObjblock
- Specified by:
visitObjblock
in interfaceVisitor
-
visitOneNl
- Specified by:
visitOneNl
in interfaceVisitor
-
visitOptionalDot
- Specified by:
visitOptionalDot
in interfaceVisitor
-
visitPackageDef
- Specified by:
visitPackageDef
in interfaceVisitor
-
visitParameters
- Specified by:
visitParameters
in interfaceVisitor
-
visitParameterDef
- Specified by:
visitParameterDef
in interfaceVisitor
-
visitPlus
-
visitPlusAssign
- Specified by:
visitPlusAssign
in interfaceVisitor
-
visitPostDec
- Specified by:
visitPostDec
in interfaceVisitor
-
visitPostInc
- Specified by:
visitPostInc
in interfaceVisitor
-
visitQuestion
- Specified by:
visitQuestion
in interfaceVisitor
-
visitRangeExclusive
- Specified by:
visitRangeExclusive
in interfaceVisitor
-
visitRangeInclusive
- Specified by:
visitRangeInclusive
in interfaceVisitor
-
visitRbrack
- Specified by:
visitRbrack
in interfaceVisitor
-
visitRcurly
- Specified by:
visitRcurly
in interfaceVisitor
-
visitRegexpCtorEnd
- Specified by:
visitRegexpCtorEnd
in interfaceVisitor
-
visitRegexpLiteral
- Specified by:
visitRegexpLiteral
in interfaceVisitor
-
visitRegexpSymbol
- Specified by:
visitRegexpSymbol
in interfaceVisitor
-
visitRegexFind
- Specified by:
visitRegexFind
in interfaceVisitor
-
visitRegexMatch
- Specified by:
visitRegexMatch
in interfaceVisitor
-
visitRparen
- Specified by:
visitRparen
in interfaceVisitor
-
visitSelectSlot
- Specified by:
visitSelectSlot
in interfaceVisitor
-
visitSemi
-
visitShComment
- Specified by:
visitShComment
in interfaceVisitor
-
visitSl
-
visitSlist
- Specified by:
visitSlist
in interfaceVisitor
-
visitSlAssign
- Specified by:
visitSlAssign
in interfaceVisitor
-
visitSlComment
- Specified by:
visitSlComment
in interfaceVisitor
-
visitSpreadArg
- Specified by:
visitSpreadArg
in interfaceVisitor
-
visitSpreadDot
- Specified by:
visitSpreadDot
in interfaceVisitor
-
visitSpreadMapArg
- Specified by:
visitSpreadMapArg
in interfaceVisitor
-
visitSr
-
visitSrAssign
- Specified by:
visitSrAssign
in interfaceVisitor
-
visitStar
-
visitStarAssign
- Specified by:
visitStarAssign
in interfaceVisitor
-
visitStarStar
- Specified by:
visitStarStar
in interfaceVisitor
-
visitStarStarAssign
- Specified by:
visitStarStarAssign
in interfaceVisitor
-
visitStaticImport
- Specified by:
visitStaticImport
in interfaceVisitor
-
visitStaticInit
- Specified by:
visitStaticInit
in interfaceVisitor
-
visitStrictfp
- Specified by:
visitStrictfp
in interfaceVisitor
-
visitStringCh
- Specified by:
visitStringCh
in interfaceVisitor
-
visitStringConstructor
- Specified by:
visitStringConstructor
in interfaceVisitor
-
visitStringCtorEnd
- Specified by:
visitStringCtorEnd
in interfaceVisitor
-
visitStringCtorMiddle
- Specified by:
visitStringCtorMiddle
in interfaceVisitor
-
visitStringCtorStart
- Specified by:
visitStringCtorStart
in interfaceVisitor
-
visitStringLiteral
- Specified by:
visitStringLiteral
in interfaceVisitor
-
visitStringNl
- Specified by:
visitStringNl
in interfaceVisitor
-
visitSuperCtorCall
- Specified by:
visitSuperCtorCall
in interfaceVisitor
-
visitTraitDef
- Specified by:
visitTraitDef
in interfaceVisitor
-
visitTripleDot
- Specified by:
visitTripleDot
in interfaceVisitor
-
visitType
-
visitTypecast
- Specified by:
visitTypecast
in interfaceVisitor
-
visitTypeArgument
- Specified by:
visitTypeArgument
in interfaceVisitor
-
visitTypeArguments
- Specified by:
visitTypeArguments
in interfaceVisitor
-
visitTypeLowerBounds
- Specified by:
visitTypeLowerBounds
in interfaceVisitor
-
visitTypeParameter
- Specified by:
visitTypeParameter
in interfaceVisitor
-
visitTypeParameters
- Specified by:
visitTypeParameters
in interfaceVisitor
-
visitTypeUpperBounds
- Specified by:
visitTypeUpperBounds
in interfaceVisitor
-
visitUnaryMinus
- Specified by:
visitUnaryMinus
in interfaceVisitor
-
visitUnaryPlus
- Specified by:
visitUnaryPlus
in interfaceVisitor
-
visitUnusedConst
- Specified by:
visitUnusedConst
in interfaceVisitor
-
visitUnusedDo
- Specified by:
visitUnusedDo
in interfaceVisitor
-
visitUnusedGoto
- Specified by:
visitUnusedGoto
in interfaceVisitor
-
visitVariableDef
- Specified by:
visitVariableDef
in interfaceVisitor
-
visitVariableParameterDef
- Specified by:
visitVariableParameterDef
in interfaceVisitor
-
visitVocab
- Specified by:
visitVocab
in interfaceVisitor
-
visitWildcardType
- Specified by:
visitWildcardType
in interfaceVisitor
-
visitWs
-
visitDefault
- Specified by:
visitDefault
in interfaceVisitor
-
tearDown
public void tearDown() -
push
-
pop
-