Class SourcePrinter
- java.lang.Object
-
- org.codehaus.groovy.antlr.treewalker.VisitorAdapter
-
- org.codehaus.groovy.antlr.treewalker.SourcePrinter
-
- All Implemented Interfaces:
Visitor
public class SourcePrinter extends VisitorAdapter
An antlr AST visitor that prints groovy source code for each visited node to the supplied PrintStream.
-
-
Field Summary
Fields Modifier and Type Field Description protected PrintStream
out
-
Fields inherited from interface org.codehaus.groovy.antlr.treewalker.Visitor
CLOSING_VISIT, OPENING_VISIT, SECOND_VISIT, SUBSEQUENT_VISIT
-
-
Constructor Summary
Constructors Constructor Description SourcePrinter(PrintStream out, String[] tokenNames)
A visitor that prints groovy source code for each node visited.SourcePrinter(PrintStream out, String[] tokenNames, boolean newLines)
A visitor that prints groovy source code for each node visited.
-
Method Summary
-
Methods inherited from class org.codehaus.groovy.antlr.treewalker.VisitorAdapter
setUp, tearDown, visitAnnotationArrayInit, visitAt, visitBigSuffix, visitBlock, visitClosureOp, visitColon, visitComma, visitDigit, visitDollar, visitEmptyStat, visitEof, visitEsc, visitExponent, visitFloatSuffix, visitForEachClause, visitHexDigit, visitLbrack, visitLcurly, visitLetter, visitLiteralClass, visitLiteralDef, visitLiteralElse, visitLiteralEnum, visitLiteralExtends, visitLiteralImplements, visitLiteralImport, visitLiteralInterface, visitLiteralPackage, visitLparen, visitMlComment, visitNls, visitNullTreeLookahead, visitOneNl, visitRbrack, visitRcurly, visitRegexpCtorEnd, visitRegexpLiteral, visitRegexpSymbol, visitRparen, visitSemi, visitShComment, visitSlComment, visitStringCh, visitStringCtorEnd, visitStringCtorMiddle, visitStringCtorStart, visitStringNl, visitTripleDot, visitUnusedConst, visitUnusedDo, visitUnusedGoto, visitVocab, visitWs
-
-
-
-
Field Detail
-
out
protected final PrintStream out
-
-
Constructor Detail
-
SourcePrinter
public SourcePrinter(PrintStream out, String[] tokenNames)
A visitor that prints groovy source code for each node visited.- Parameters:
out
- where to print the source code totokenNames
- an array of token names from antlr
-
SourcePrinter
public SourcePrinter(PrintStream out, String[] tokenNames, boolean newLines)
A visitor that prints groovy source code for each node visited.- Parameters:
out
- where to print the source code totokenNames
- an array of token names from antlrnewLines
- output newline character
-
-
Method Detail
-
visitAbstract
public void visitAbstract(GroovySourceAST t, int visit)
- Specified by:
visitAbstract
in interfaceVisitor
- Overrides:
visitAbstract
in classVisitorAdapter
-
visitAnnotation
public void visitAnnotation(GroovySourceAST t, int visit)
- Specified by:
visitAnnotation
in interfaceVisitor
- Overrides:
visitAnnotation
in classVisitorAdapter
-
visitAnnotations
public void visitAnnotations(GroovySourceAST t, int visit)
- Specified by:
visitAnnotations
in interfaceVisitor
- Overrides:
visitAnnotations
in classVisitorAdapter
-
visitAnnotationDef
public void visitAnnotationDef(GroovySourceAST t, int visit)
- Specified by:
visitAnnotationDef
in interfaceVisitor
- Overrides:
visitAnnotationDef
in classVisitorAdapter
-
visitAnnotationFieldDef
public void visitAnnotationFieldDef(GroovySourceAST t, int visit)
- Specified by:
visitAnnotationFieldDef
in interfaceVisitor
- Overrides:
visitAnnotationFieldDef
in classVisitorAdapter
-
visitAnnotationMemberValuePair
public void visitAnnotationMemberValuePair(GroovySourceAST t, int visit)
- Specified by:
visitAnnotationMemberValuePair
in interfaceVisitor
- Overrides:
visitAnnotationMemberValuePair
in classVisitorAdapter
-
visitArrayDeclarator
public void visitArrayDeclarator(GroovySourceAST t, int visit)
- Specified by:
visitArrayDeclarator
in interfaceVisitor
- Overrides:
visitArrayDeclarator
in classVisitorAdapter
-
visitAssign
public void visitAssign(GroovySourceAST t, int visit)
- Specified by:
visitAssign
in interfaceVisitor
- Overrides:
visitAssign
in classVisitorAdapter
-
visitBand
public void visitBand(GroovySourceAST t, int visit)
- Specified by:
visitBand
in interfaceVisitor
- Overrides:
visitBand
in classVisitorAdapter
-
visitBandAssign
public void visitBandAssign(GroovySourceAST t, int visit)
- Specified by:
visitBandAssign
in interfaceVisitor
- Overrides:
visitBandAssign
in classVisitorAdapter
-
visitBnot
public void visitBnot(GroovySourceAST t, int visit)
- Specified by:
visitBnot
in interfaceVisitor
- Overrides:
visitBnot
in classVisitorAdapter
-
visitBor
public void visitBor(GroovySourceAST t, int visit)
- Specified by:
visitBor
in interfaceVisitor
- Overrides:
visitBor
in classVisitorAdapter
-
visitBorAssign
public void visitBorAssign(GroovySourceAST t, int visit)
- Specified by:
visitBorAssign
in interfaceVisitor
- Overrides:
visitBorAssign
in classVisitorAdapter
-
visitBsr
public void visitBsr(GroovySourceAST t, int visit)
- Specified by:
visitBsr
in interfaceVisitor
- Overrides:
visitBsr
in classVisitorAdapter
-
visitBsrAssign
public void visitBsrAssign(GroovySourceAST t, int visit)
- Specified by:
visitBsrAssign
in interfaceVisitor
- Overrides:
visitBsrAssign
in classVisitorAdapter
-
visitBxor
public void visitBxor(GroovySourceAST t, int visit)
- Specified by:
visitBxor
in interfaceVisitor
- Overrides:
visitBxor
in classVisitorAdapter
-
visitBxorAssign
public void visitBxorAssign(GroovySourceAST t, int visit)
- Specified by:
visitBxorAssign
in interfaceVisitor
- Overrides:
visitBxorAssign
in classVisitorAdapter
-
visitCaseGroup
public void visitCaseGroup(GroovySourceAST t, int visit)
- Specified by:
visitCaseGroup
in interfaceVisitor
- Overrides:
visitCaseGroup
in classVisitorAdapter
-
visitClassDef
public void visitClassDef(GroovySourceAST t, int visit)
- Specified by:
visitClassDef
in interfaceVisitor
- Overrides:
visitClassDef
in classVisitorAdapter
-
visitClosedBlock
public void visitClosedBlock(GroovySourceAST t, int visit)
- Specified by:
visitClosedBlock
in interfaceVisitor
- Overrides:
visitClosedBlock
in classVisitorAdapter
-
visitClosureList
public void visitClosureList(GroovySourceAST t, int visit)
- Specified by:
visitClosureList
in interfaceVisitor
- Overrides:
visitClosureList
in classVisitorAdapter
-
visitCompareTo
public void visitCompareTo(GroovySourceAST t, int visit)
- Specified by:
visitCompareTo
in interfaceVisitor
- Overrides:
visitCompareTo
in classVisitorAdapter
-
visitCtorCall
public void visitCtorCall(GroovySourceAST t, int visit)
- Specified by:
visitCtorCall
in interfaceVisitor
- Overrides:
visitCtorCall
in classVisitorAdapter
-
visitCtorIdent
public void visitCtorIdent(GroovySourceAST t, int visit)
- Specified by:
visitCtorIdent
in interfaceVisitor
- Overrides:
visitCtorIdent
in classVisitorAdapter
-
visitDec
public void visitDec(GroovySourceAST t, int visit)
- Specified by:
visitDec
in interfaceVisitor
- Overrides:
visitDec
in classVisitorAdapter
-
visitDiv
public void visitDiv(GroovySourceAST t, int visit)
- Specified by:
visitDiv
in interfaceVisitor
- Overrides:
visitDiv
in classVisitorAdapter
-
visitDivAssign
public void visitDivAssign(GroovySourceAST t, int visit)
- Specified by:
visitDivAssign
in interfaceVisitor
- Overrides:
visitDivAssign
in classVisitorAdapter
-
visitDot
public void visitDot(GroovySourceAST t, int visit)
- Specified by:
visitDot
in interfaceVisitor
- Overrides:
visitDot
in classVisitorAdapter
-
visitDynamicMember
public void visitDynamicMember(GroovySourceAST t, int visit)
- Specified by:
visitDynamicMember
in interfaceVisitor
- Overrides:
visitDynamicMember
in classVisitorAdapter
-
visitElist
public void visitElist(GroovySourceAST t, int visit)
- Specified by:
visitElist
in interfaceVisitor
- Overrides:
visitElist
in classVisitorAdapter
-
visitEnumConstantDef
public void visitEnumConstantDef(GroovySourceAST t, int visit)
- Specified by:
visitEnumConstantDef
in interfaceVisitor
- Overrides:
visitEnumConstantDef
in classVisitorAdapter
-
visitEnumDef
public void visitEnumDef(GroovySourceAST t, int visit)
- Specified by:
visitEnumDef
in interfaceVisitor
- Overrides:
visitEnumDef
in classVisitorAdapter
-
visitEqual
public void visitEqual(GroovySourceAST t, int visit)
- Specified by:
visitEqual
in interfaceVisitor
- Overrides:
visitEqual
in classVisitorAdapter
-
visitExpr
public void visitExpr(GroovySourceAST t, int visit)
- Specified by:
visitExpr
in interfaceVisitor
- Overrides:
visitExpr
in classVisitorAdapter
-
visitExtendsClause
public void visitExtendsClause(GroovySourceAST t, int visit)
- Specified by:
visitExtendsClause
in interfaceVisitor
- Overrides:
visitExtendsClause
in classVisitorAdapter
-
visitFinal
public void visitFinal(GroovySourceAST t, int visit)
- Specified by:
visitFinal
in interfaceVisitor
- Overrides:
visitFinal
in classVisitorAdapter
-
visitForCondition
public void visitForCondition(GroovySourceAST t, int visit)
- Specified by:
visitForCondition
in interfaceVisitor
- Overrides:
visitForCondition
in classVisitorAdapter
-
visitForInit
public void visitForInit(GroovySourceAST t, int visit)
- Specified by:
visitForInit
in interfaceVisitor
- Overrides:
visitForInit
in classVisitorAdapter
-
visitForInIterable
public void visitForInIterable(GroovySourceAST t, int visit)
- Specified by:
visitForInIterable
in interfaceVisitor
- Overrides:
visitForInIterable
in classVisitorAdapter
-
visitForIterator
public void visitForIterator(GroovySourceAST t, int visit)
- Specified by:
visitForIterator
in interfaceVisitor
- Overrides:
visitForIterator
in classVisitorAdapter
-
visitGe
public void visitGe(GroovySourceAST t, int visit)
- Specified by:
visitGe
in interfaceVisitor
- Overrides:
visitGe
in classVisitorAdapter
-
visitGt
public void visitGt(GroovySourceAST t, int visit)
- Specified by:
visitGt
in interfaceVisitor
- Overrides:
visitGt
in classVisitorAdapter
-
visitIdent
public void visitIdent(GroovySourceAST t, int visit)
- Specified by:
visitIdent
in interfaceVisitor
- Overrides:
visitIdent
in classVisitorAdapter
-
visitImplementsClause
public void visitImplementsClause(GroovySourceAST t, int visit)
- Specified by:
visitImplementsClause
in interfaceVisitor
- Overrides:
visitImplementsClause
in classVisitorAdapter
-
visitImplicitParameters
public void visitImplicitParameters(GroovySourceAST t, int visit)
- Specified by:
visitImplicitParameters
in interfaceVisitor
- Overrides:
visitImplicitParameters
in classVisitorAdapter
-
visitImport
public void visitImport(GroovySourceAST t, int visit)
- Specified by:
visitImport
in interfaceVisitor
- Overrides:
visitImport
in classVisitorAdapter
-
visitInc
public void visitInc(GroovySourceAST t, int visit)
- Specified by:
visitInc
in interfaceVisitor
- Overrides:
visitInc
in classVisitorAdapter
-
visitIndexOp
public void visitIndexOp(GroovySourceAST t, int visit)
- Specified by:
visitIndexOp
in interfaceVisitor
- Overrides:
visitIndexOp
in classVisitorAdapter
-
visitInterfaceDef
public void visitInterfaceDef(GroovySourceAST t, int visit)
- Specified by:
visitInterfaceDef
in interfaceVisitor
- Overrides:
visitInterfaceDef
in classVisitorAdapter
-
visitInstanceInit
public void visitInstanceInit(GroovySourceAST t, int visit)
- Specified by:
visitInstanceInit
in interfaceVisitor
- Overrides:
visitInstanceInit
in classVisitorAdapter
-
visitLabeledArg
public void visitLabeledArg(GroovySourceAST t, int visit)
- Specified by:
visitLabeledArg
in interfaceVisitor
- Overrides:
visitLabeledArg
in classVisitorAdapter
-
visitLabeledStat
public void visitLabeledStat(GroovySourceAST t, int visit)
- Specified by:
visitLabeledStat
in interfaceVisitor
- Overrides:
visitLabeledStat
in classVisitorAdapter
-
visitLand
public void visitLand(GroovySourceAST t, int visit)
- Specified by:
visitLand
in interfaceVisitor
- Overrides:
visitLand
in classVisitorAdapter
-
visitLe
public void visitLe(GroovySourceAST t, int visit)
- Specified by:
visitLe
in interfaceVisitor
- Overrides:
visitLe
in classVisitorAdapter
-
visitListConstructor
public void visitListConstructor(GroovySourceAST t, int visit)
- Specified by:
visitListConstructor
in interfaceVisitor
- Overrides:
visitListConstructor
in classVisitorAdapter
-
visitLiteralAs
public void visitLiteralAs(GroovySourceAST t, int visit)
- Specified by:
visitLiteralAs
in interfaceVisitor
- Overrides:
visitLiteralAs
in classVisitorAdapter
-
visitLiteralAssert
public void visitLiteralAssert(GroovySourceAST t, int visit)
- Specified by:
visitLiteralAssert
in interfaceVisitor
- Overrides:
visitLiteralAssert
in classVisitorAdapter
-
visitLiteralBoolean
public void visitLiteralBoolean(GroovySourceAST t, int visit)
- Specified by:
visitLiteralBoolean
in interfaceVisitor
- Overrides:
visitLiteralBoolean
in classVisitorAdapter
-
visitLiteralBreak
public void visitLiteralBreak(GroovySourceAST t, int visit)
- Specified by:
visitLiteralBreak
in interfaceVisitor
- Overrides:
visitLiteralBreak
in classVisitorAdapter
-
visitLiteralByte
public void visitLiteralByte(GroovySourceAST t, int visit)
- Specified by:
visitLiteralByte
in interfaceVisitor
- Overrides:
visitLiteralByte
in classVisitorAdapter
-
visitLiteralCase
public void visitLiteralCase(GroovySourceAST t, int visit)
- Specified by:
visitLiteralCase
in interfaceVisitor
- Overrides:
visitLiteralCase
in classVisitorAdapter
-
visitLiteralCatch
public void visitLiteralCatch(GroovySourceAST t, int visit)
- Specified by:
visitLiteralCatch
in interfaceVisitor
- Overrides:
visitLiteralCatch
in classVisitorAdapter
-
visitLiteralChar
public void visitLiteralChar(GroovySourceAST t, int visit)
- Specified by:
visitLiteralChar
in interfaceVisitor
- Overrides:
visitLiteralChar
in classVisitorAdapter
-
visitLiteralContinue
public void visitLiteralContinue(GroovySourceAST t, int visit)
- Specified by:
visitLiteralContinue
in interfaceVisitor
- Overrides:
visitLiteralContinue
in classVisitorAdapter
-
visitLiteralDefault
public void visitLiteralDefault(GroovySourceAST t, int visit)
- Specified by:
visitLiteralDefault
in interfaceVisitor
- Overrides:
visitLiteralDefault
in classVisitorAdapter
-
visitLiteralDouble
public void visitLiteralDouble(GroovySourceAST t, int visit)
- Specified by:
visitLiteralDouble
in interfaceVisitor
- Overrides:
visitLiteralDouble
in classVisitorAdapter
-
visitLiteralFalse
public void visitLiteralFalse(GroovySourceAST t, int visit)
- Specified by:
visitLiteralFalse
in interfaceVisitor
- Overrides:
visitLiteralFalse
in classVisitorAdapter
-
visitLiteralFinally
public void visitLiteralFinally(GroovySourceAST t, int visit)
- Specified by:
visitLiteralFinally
in interfaceVisitor
- Overrides:
visitLiteralFinally
in classVisitorAdapter
-
visitLiteralFloat
public void visitLiteralFloat(GroovySourceAST t, int visit)
- Specified by:
visitLiteralFloat
in interfaceVisitor
- Overrides:
visitLiteralFloat
in classVisitorAdapter
-
visitLiteralFor
public void visitLiteralFor(GroovySourceAST t, int visit)
- Specified by:
visitLiteralFor
in interfaceVisitor
- Overrides:
visitLiteralFor
in classVisitorAdapter
-
visitLiteralIf
public void visitLiteralIf(GroovySourceAST t, int visit)
- Specified by:
visitLiteralIf
in interfaceVisitor
- Overrides:
visitLiteralIf
in classVisitorAdapter
-
visitLiteralIn
public void visitLiteralIn(GroovySourceAST t, int visit)
- Specified by:
visitLiteralIn
in interfaceVisitor
- Overrides:
visitLiteralIn
in classVisitorAdapter
-
visitLiteralInstanceof
public void visitLiteralInstanceof(GroovySourceAST t, int visit)
- Specified by:
visitLiteralInstanceof
in interfaceVisitor
- Overrides:
visitLiteralInstanceof
in classVisitorAdapter
-
visitLiteralInt
public void visitLiteralInt(GroovySourceAST t, int visit)
- Specified by:
visitLiteralInt
in interfaceVisitor
- Overrides:
visitLiteralInt
in classVisitorAdapter
-
visitLiteralLong
public void visitLiteralLong(GroovySourceAST t, int visit)
- Specified by:
visitLiteralLong
in interfaceVisitor
- Overrides:
visitLiteralLong
in classVisitorAdapter
-
visitLiteralNative
public void visitLiteralNative(GroovySourceAST t, int visit)
- Specified by:
visitLiteralNative
in interfaceVisitor
- Overrides:
visitLiteralNative
in classVisitorAdapter
-
visitLiteralNew
public void visitLiteralNew(GroovySourceAST t, int visit)
- Specified by:
visitLiteralNew
in interfaceVisitor
- Overrides:
visitLiteralNew
in classVisitorAdapter
-
visitLiteralNull
public void visitLiteralNull(GroovySourceAST t, int visit)
- Specified by:
visitLiteralNull
in interfaceVisitor
- Overrides:
visitLiteralNull
in classVisitorAdapter
-
visitLiteralPrivate
public void visitLiteralPrivate(GroovySourceAST t, int visit)
- Specified by:
visitLiteralPrivate
in interfaceVisitor
- Overrides:
visitLiteralPrivate
in classVisitorAdapter
-
visitLiteralProtected
public void visitLiteralProtected(GroovySourceAST t, int visit)
- Specified by:
visitLiteralProtected
in interfaceVisitor
- Overrides:
visitLiteralProtected
in classVisitorAdapter
-
visitLiteralPublic
public void visitLiteralPublic(GroovySourceAST t, int visit)
- Specified by:
visitLiteralPublic
in interfaceVisitor
- Overrides:
visitLiteralPublic
in classVisitorAdapter
-
visitLiteralReturn
public void visitLiteralReturn(GroovySourceAST t, int visit)
- Specified by:
visitLiteralReturn
in interfaceVisitor
- Overrides:
visitLiteralReturn
in classVisitorAdapter
-
visitLiteralShort
public void visitLiteralShort(GroovySourceAST t, int visit)
- Specified by:
visitLiteralShort
in interfaceVisitor
- Overrides:
visitLiteralShort
in classVisitorAdapter
-
visitLiteralStatic
public void visitLiteralStatic(GroovySourceAST t, int visit)
- Specified by:
visitLiteralStatic
in interfaceVisitor
- Overrides:
visitLiteralStatic
in classVisitorAdapter
-
visitLiteralSuper
public void visitLiteralSuper(GroovySourceAST t, int visit)
- Specified by:
visitLiteralSuper
in interfaceVisitor
- Overrides:
visitLiteralSuper
in classVisitorAdapter
-
visitLiteralSwitch
public void visitLiteralSwitch(GroovySourceAST t, int visit)
- Specified by:
visitLiteralSwitch
in interfaceVisitor
- Overrides:
visitLiteralSwitch
in classVisitorAdapter
-
visitLiteralSynchronized
public void visitLiteralSynchronized(GroovySourceAST t, int visit)
- Specified by:
visitLiteralSynchronized
in interfaceVisitor
- Overrides:
visitLiteralSynchronized
in classVisitorAdapter
-
visitLiteralThis
public void visitLiteralThis(GroovySourceAST t, int visit)
- Specified by:
visitLiteralThis
in interfaceVisitor
- Overrides:
visitLiteralThis
in classVisitorAdapter
-
visitLiteralThreadsafe
public void visitLiteralThreadsafe(GroovySourceAST t, int visit)
- Specified by:
visitLiteralThreadsafe
in interfaceVisitor
- Overrides:
visitLiteralThreadsafe
in classVisitorAdapter
-
visitLiteralThrow
public void visitLiteralThrow(GroovySourceAST t, int visit)
- Specified by:
visitLiteralThrow
in interfaceVisitor
- Overrides:
visitLiteralThrow
in classVisitorAdapter
-
visitLiteralThrows
public void visitLiteralThrows(GroovySourceAST t, int visit)
- Specified by:
visitLiteralThrows
in interfaceVisitor
- Overrides:
visitLiteralThrows
in classVisitorAdapter
-
visitLiteralTransient
public void visitLiteralTransient(GroovySourceAST t, int visit)
- Specified by:
visitLiteralTransient
in interfaceVisitor
- Overrides:
visitLiteralTransient
in classVisitorAdapter
-
visitLiteralTrue
public void visitLiteralTrue(GroovySourceAST t, int visit)
- Specified by:
visitLiteralTrue
in interfaceVisitor
- Overrides:
visitLiteralTrue
in classVisitorAdapter
-
visitLiteralTry
public void visitLiteralTry(GroovySourceAST t, int visit)
- Specified by:
visitLiteralTry
in interfaceVisitor
- Overrides:
visitLiteralTry
in classVisitorAdapter
-
visitLiteralVoid
public void visitLiteralVoid(GroovySourceAST t, int visit)
- Specified by:
visitLiteralVoid
in interfaceVisitor
- Overrides:
visitLiteralVoid
in classVisitorAdapter
-
visitLiteralVolatile
public void visitLiteralVolatile(GroovySourceAST t, int visit)
- Specified by:
visitLiteralVolatile
in interfaceVisitor
- Overrides:
visitLiteralVolatile
in classVisitorAdapter
-
visitLiteralWhile
public void visitLiteralWhile(GroovySourceAST t, int visit)
- Specified by:
visitLiteralWhile
in interfaceVisitor
- Overrides:
visitLiteralWhile
in classVisitorAdapter
-
visitLnot
public void visitLnot(GroovySourceAST t, int visit)
- Specified by:
visitLnot
in interfaceVisitor
- Overrides:
visitLnot
in classVisitorAdapter
-
visitLor
public void visitLor(GroovySourceAST t, int visit)
- Specified by:
visitLor
in interfaceVisitor
- Overrides:
visitLor
in classVisitorAdapter
-
visitLt
public void visitLt(GroovySourceAST t, int visit)
- Specified by:
visitLt
in interfaceVisitor
- Overrides:
visitLt
in classVisitorAdapter
-
visitMapConstructor
public void visitMapConstructor(GroovySourceAST t, int visit)
- Specified by:
visitMapConstructor
in interfaceVisitor
- Overrides:
visitMapConstructor
in classVisitorAdapter
-
visitMemberPointer
public void visitMemberPointer(GroovySourceAST t, int visit)
- Specified by:
visitMemberPointer
in interfaceVisitor
- Overrides:
visitMemberPointer
in classVisitorAdapter
-
visitMethodCall
public void visitMethodCall(GroovySourceAST t, int visit)
- Specified by:
visitMethodCall
in interfaceVisitor
- Overrides:
visitMethodCall
in classVisitorAdapter
-
visitMethodDef
public void visitMethodDef(GroovySourceAST t, int visit)
- Specified by:
visitMethodDef
in interfaceVisitor
- Overrides:
visitMethodDef
in classVisitorAdapter
-
visitMinus
public void visitMinus(GroovySourceAST t, int visit)
- Specified by:
visitMinus
in interfaceVisitor
- Overrides:
visitMinus
in classVisitorAdapter
-
visitMinusAssign
public void visitMinusAssign(GroovySourceAST t, int visit)
- Specified by:
visitMinusAssign
in interfaceVisitor
- Overrides:
visitMinusAssign
in classVisitorAdapter
-
visitMod
public void visitMod(GroovySourceAST t, int visit)
- Specified by:
visitMod
in interfaceVisitor
- Overrides:
visitMod
in classVisitorAdapter
-
visitModifiers
public void visitModifiers(GroovySourceAST t, int visit)
- Specified by:
visitModifiers
in interfaceVisitor
- Overrides:
visitModifiers
in classVisitorAdapter
-
visitModAssign
public void visitModAssign(GroovySourceAST t, int visit)
- Specified by:
visitModAssign
in interfaceVisitor
- Overrides:
visitModAssign
in classVisitorAdapter
-
visitMultiCatch
public void visitMultiCatch(GroovySourceAST t, int visit)
- Specified by:
visitMultiCatch
in interfaceVisitor
- Overrides:
visitMultiCatch
in classVisitorAdapter
-
visitMultiCatchTypes
public void visitMultiCatchTypes(GroovySourceAST t, int visit)
- Specified by:
visitMultiCatchTypes
in interfaceVisitor
- Overrides:
visitMultiCatchTypes
in classVisitorAdapter
-
visitNotEqual
public void visitNotEqual(GroovySourceAST t, int visit)
- Specified by:
visitNotEqual
in interfaceVisitor
- Overrides:
visitNotEqual
in classVisitorAdapter
-
visitNumBigDecimal
public void visitNumBigDecimal(GroovySourceAST t, int visit)
- Specified by:
visitNumBigDecimal
in interfaceVisitor
- Overrides:
visitNumBigDecimal
in classVisitorAdapter
-
visitNumBigInt
public void visitNumBigInt(GroovySourceAST t, int visit)
- Specified by:
visitNumBigInt
in interfaceVisitor
- Overrides:
visitNumBigInt
in classVisitorAdapter
-
visitNumDouble
public void visitNumDouble(GroovySourceAST t, int visit)
- Specified by:
visitNumDouble
in interfaceVisitor
- Overrides:
visitNumDouble
in classVisitorAdapter
-
visitNumInt
public void visitNumInt(GroovySourceAST t, int visit)
- Specified by:
visitNumInt
in interfaceVisitor
- Overrides:
visitNumInt
in classVisitorAdapter
-
visitNumFloat
public void visitNumFloat(GroovySourceAST t, int visit)
- Specified by:
visitNumFloat
in interfaceVisitor
- Overrides:
visitNumFloat
in classVisitorAdapter
-
visitNumLong
public void visitNumLong(GroovySourceAST t, int visit)
- Specified by:
visitNumLong
in interfaceVisitor
- Overrides:
visitNumLong
in classVisitorAdapter
-
visitObjblock
public void visitObjblock(GroovySourceAST t, int visit)
- Specified by:
visitObjblock
in interfaceVisitor
- Overrides:
visitObjblock
in classVisitorAdapter
-
visitOptionalDot
public void visitOptionalDot(GroovySourceAST t, int visit)
- Specified by:
visitOptionalDot
in interfaceVisitor
- Overrides:
visitOptionalDot
in classVisitorAdapter
-
visitPackageDef
public void visitPackageDef(GroovySourceAST t, int visit)
- Specified by:
visitPackageDef
in interfaceVisitor
- Overrides:
visitPackageDef
in classVisitorAdapter
-
visitParameterDef
public void visitParameterDef(GroovySourceAST t, int visit)
- Specified by:
visitParameterDef
in interfaceVisitor
- Overrides:
visitParameterDef
in classVisitorAdapter
-
visitParameters
public void visitParameters(GroovySourceAST t, int visit)
- Specified by:
visitParameters
in interfaceVisitor
- Overrides:
visitParameters
in classVisitorAdapter
-
visitPlus
public void visitPlus(GroovySourceAST t, int visit)
- Specified by:
visitPlus
in interfaceVisitor
- Overrides:
visitPlus
in classVisitorAdapter
-
visitPlusAssign
public void visitPlusAssign(GroovySourceAST t, int visit)
- Specified by:
visitPlusAssign
in interfaceVisitor
- Overrides:
visitPlusAssign
in classVisitorAdapter
-
visitPostDec
public void visitPostDec(GroovySourceAST t, int visit)
- Specified by:
visitPostDec
in interfaceVisitor
- Overrides:
visitPostDec
in classVisitorAdapter
-
visitPostInc
public void visitPostInc(GroovySourceAST t, int visit)
- Specified by:
visitPostInc
in interfaceVisitor
- Overrides:
visitPostInc
in classVisitorAdapter
-
visitQuestion
public void visitQuestion(GroovySourceAST t, int visit)
- Specified by:
visitQuestion
in interfaceVisitor
- Overrides:
visitQuestion
in classVisitorAdapter
-
visitRangeExclusive
public void visitRangeExclusive(GroovySourceAST t, int visit)
- Specified by:
visitRangeExclusive
in interfaceVisitor
- Overrides:
visitRangeExclusive
in classVisitorAdapter
-
visitRangeInclusive
public void visitRangeInclusive(GroovySourceAST t, int visit)
- Specified by:
visitRangeInclusive
in interfaceVisitor
- Overrides:
visitRangeInclusive
in classVisitorAdapter
-
visitRegexFind
public void visitRegexFind(GroovySourceAST t, int visit)
- Specified by:
visitRegexFind
in interfaceVisitor
- Overrides:
visitRegexFind
in classVisitorAdapter
-
visitRegexMatch
public void visitRegexMatch(GroovySourceAST t, int visit)
- Specified by:
visitRegexMatch
in interfaceVisitor
- Overrides:
visitRegexMatch
in classVisitorAdapter
-
visitSelectSlot
public void visitSelectSlot(GroovySourceAST t, int visit)
- Specified by:
visitSelectSlot
in interfaceVisitor
- Overrides:
visitSelectSlot
in classVisitorAdapter
-
visitSl
public void visitSl(GroovySourceAST t, int visit)
- Specified by:
visitSl
in interfaceVisitor
- Overrides:
visitSl
in classVisitorAdapter
-
visitSlAssign
public void visitSlAssign(GroovySourceAST t, int visit)
- Specified by:
visitSlAssign
in interfaceVisitor
- Overrides:
visitSlAssign
in classVisitorAdapter
-
visitSlist
public void visitSlist(GroovySourceAST t, int visit)
- Specified by:
visitSlist
in interfaceVisitor
- Overrides:
visitSlist
in classVisitorAdapter
-
visitSpreadArg
public void visitSpreadArg(GroovySourceAST t, int visit)
- Specified by:
visitSpreadArg
in interfaceVisitor
- Overrides:
visitSpreadArg
in classVisitorAdapter
-
visitSpreadDot
public void visitSpreadDot(GroovySourceAST t, int visit)
- Specified by:
visitSpreadDot
in interfaceVisitor
- Overrides:
visitSpreadDot
in classVisitorAdapter
-
visitSpreadMapArg
public void visitSpreadMapArg(GroovySourceAST t, int visit)
- Specified by:
visitSpreadMapArg
in interfaceVisitor
- Overrides:
visitSpreadMapArg
in classVisitorAdapter
-
visitSr
public void visitSr(GroovySourceAST t, int visit)
- Specified by:
visitSr
in interfaceVisitor
- Overrides:
visitSr
in classVisitorAdapter
-
visitSrAssign
public void visitSrAssign(GroovySourceAST t, int visit)
- Specified by:
visitSrAssign
in interfaceVisitor
- Overrides:
visitSrAssign
in classVisitorAdapter
-
visitStar
public void visitStar(GroovySourceAST t, int visit)
- Specified by:
visitStar
in interfaceVisitor
- Overrides:
visitStar
in classVisitorAdapter
-
visitStarAssign
public void visitStarAssign(GroovySourceAST t, int visit)
- Specified by:
visitStarAssign
in interfaceVisitor
- Overrides:
visitStarAssign
in classVisitorAdapter
-
visitStarStar
public void visitStarStar(GroovySourceAST t, int visit)
- Specified by:
visitStarStar
in interfaceVisitor
- Overrides:
visitStarStar
in classVisitorAdapter
-
visitStarStarAssign
public void visitStarStarAssign(GroovySourceAST t, int visit)
- Specified by:
visitStarStarAssign
in interfaceVisitor
- Overrides:
visitStarStarAssign
in classVisitorAdapter
-
visitStaticInit
public void visitStaticInit(GroovySourceAST t, int visit)
- Specified by:
visitStaticInit
in interfaceVisitor
- Overrides:
visitStaticInit
in classVisitorAdapter
-
visitStaticImport
public void visitStaticImport(GroovySourceAST t, int visit)
- Specified by:
visitStaticImport
in interfaceVisitor
- Overrides:
visitStaticImport
in classVisitorAdapter
-
visitStrictfp
public void visitStrictfp(GroovySourceAST t, int visit)
- Specified by:
visitStrictfp
in interfaceVisitor
- Overrides:
visitStrictfp
in classVisitorAdapter
-
visitStringConstructor
public void visitStringConstructor(GroovySourceAST t, int visit)
- Specified by:
visitStringConstructor
in interfaceVisitor
- Overrides:
visitStringConstructor
in classVisitorAdapter
-
visitStringLiteral
public void visitStringLiteral(GroovySourceAST t, int visit)
- Specified by:
visitStringLiteral
in interfaceVisitor
- Overrides:
visitStringLiteral
in classVisitorAdapter
-
visitSuperCtorCall
public void visitSuperCtorCall(GroovySourceAST t, int visit)
- Specified by:
visitSuperCtorCall
in interfaceVisitor
- Overrides:
visitSuperCtorCall
in classVisitorAdapter
-
visitTraitDef
public void visitTraitDef(GroovySourceAST t, int visit)
- Specified by:
visitTraitDef
in interfaceVisitor
- Overrides:
visitTraitDef
in classVisitorAdapter
-
visitType
public void visitType(GroovySourceAST t, int visit)
- Specified by:
visitType
in interfaceVisitor
- Overrides:
visitType
in classVisitorAdapter
-
visitTypeArgument
public void visitTypeArgument(GroovySourceAST t, int visit)
- Specified by:
visitTypeArgument
in interfaceVisitor
- Overrides:
visitTypeArgument
in classVisitorAdapter
-
visitTypeArguments
public void visitTypeArguments(GroovySourceAST t, int visit)
- Specified by:
visitTypeArguments
in interfaceVisitor
- Overrides:
visitTypeArguments
in classVisitorAdapter
-
visitTypecast
public void visitTypecast(GroovySourceAST t, int visit)
- Specified by:
visitTypecast
in interfaceVisitor
- Overrides:
visitTypecast
in classVisitorAdapter
-
visitTypeLowerBounds
public void visitTypeLowerBounds(GroovySourceAST t, int visit)
- Specified by:
visitTypeLowerBounds
in interfaceVisitor
- Overrides:
visitTypeLowerBounds
in classVisitorAdapter
-
visitTypeParameter
public void visitTypeParameter(GroovySourceAST t, int visit)
- Specified by:
visitTypeParameter
in interfaceVisitor
- Overrides:
visitTypeParameter
in classVisitorAdapter
-
visitTypeParameters
public void visitTypeParameters(GroovySourceAST t, int visit)
- Specified by:
visitTypeParameters
in interfaceVisitor
- Overrides:
visitTypeParameters
in classVisitorAdapter
-
visitTypeUpperBounds
public void visitTypeUpperBounds(GroovySourceAST t, int visit)
- Specified by:
visitTypeUpperBounds
in interfaceVisitor
- Overrides:
visitTypeUpperBounds
in classVisitorAdapter
-
visitUnaryMinus
public void visitUnaryMinus(GroovySourceAST t, int visit)
- Specified by:
visitUnaryMinus
in interfaceVisitor
- Overrides:
visitUnaryMinus
in classVisitorAdapter
-
visitUnaryPlus
public void visitUnaryPlus(GroovySourceAST t, int visit)
- Specified by:
visitUnaryPlus
in interfaceVisitor
- Overrides:
visitUnaryPlus
in classVisitorAdapter
-
visitVariableDef
public void visitVariableDef(GroovySourceAST t, int visit)
- Specified by:
visitVariableDef
in interfaceVisitor
- Overrides:
visitVariableDef
in classVisitorAdapter
-
visitVariableParameterDef
public void visitVariableParameterDef(GroovySourceAST t, int visit)
- Specified by:
visitVariableParameterDef
in interfaceVisitor
- Overrides:
visitVariableParameterDef
in classVisitorAdapter
-
visitWildcardType
public void visitWildcardType(GroovySourceAST t, int visit)
- Specified by:
visitWildcardType
in interfaceVisitor
- Overrides:
visitWildcardType
in classVisitorAdapter
-
visitDefault
public void visitDefault(GroovySourceAST t, int visit)
- Specified by:
visitDefault
in interfaceVisitor
- Overrides:
visitDefault
in classVisitorAdapter
-
printUpdatingTabLevel
protected void printUpdatingTabLevel(GroovySourceAST t, int visit, String opening, String subsequent, String closing)
-
print
protected void print(GroovySourceAST t, int visit, String opening, String subsequent, String closing)
-
print
protected void print(GroovySourceAST t, int visit, String value)
-
printNewlineAndIndent
protected void printNewlineAndIndent(GroovySourceAST t, int visit)
-
push
public void push(GroovySourceAST t)
- Specified by:
push
in interfaceVisitor
- Overrides:
push
in classVisitorAdapter
-
pop
public GroovySourceAST pop()
- Specified by:
pop
in interfaceVisitor
- Overrides:
pop
in classVisitorAdapter
-
-