Package org.codehaus.groovy.ast
Class CodeVisitorSupport
java.lang.Object
org.codehaus.groovy.ast.CodeVisitorSupport
- All Implemented Interfaces:
GroovyCodeVisitor
- Direct Known Subclasses:
ClassCodeVisitorSupport
,ClosureWriter.CorrectAccessedVariableVisitor
,CollectRecursiveCalls
,GinqAstBaseVisitor
,GinqAstBuilder
,HasRecursiveCalls
,MethodInvocationTrap
,ReturnAdderForClosures
,SqlOrderByVisitor
,SqlWhereVisitor
,StatementReplacer
,TransformingCodeVisitor
,VariableExpressionReplacer
,VerifierCodeVisitor
Abstract base class for any GroovyCodeVisitor which by default
just walks the code and expression tree
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
visitArgumentlistExpression
(ArgumentListExpression expression) void
visitArrayExpression
(ArrayExpression expression) void
visitAssertStatement
(AssertStatement statement) void
visitAttributeExpression
(AttributeExpression expression) void
visitBinaryExpression
(BinaryExpression expression) void
void
void
visitBooleanExpression
(BooleanExpression expression) void
visitBreakStatement
(BreakStatement statement) void
visitBytecodeExpression
(BytecodeExpression expression) void
visitCaseStatement
(CaseStatement statement) void
visitCastExpression
(CastExpression expression) void
visitCatchStatement
(CatchStatement statement) void
visitClassExpression
(ClassExpression expression) void
visitClosureExpression
(ClosureExpression expression) void
visitClosureListExpression
(ClosureListExpression expression) void
visitConstantExpression
(ConstantExpression expression) void
void
visitContinueStatement
(ContinueStatement statement) void
visitDeclarationExpression
(DeclarationExpression expression) void
void
visitEmptyStatement
(EmptyStatement statement) void
visitExpressionStatement
(ExpressionStatement statement) void
visitFieldExpression
(FieldExpression expression) void
visitForLoop
(ForStatement forLoop) void
visitGStringExpression
(GStringExpression expression) void
visitIfElse
(IfStatement ifElse) void
visitLambdaExpression
(LambdaExpression expression) void
visitListExpression
(ListExpression expression) void
visitMapEntryExpression
(MapEntryExpression expression) void
visitMapExpression
(MapExpression expression) void
void
visitMethodPointerExpression
(MethodPointerExpression expression) void
void
visitNotExpression
(NotExpression expression) void
visitPostfixExpression
(PostfixExpression expression) void
visitPrefixExpression
(PrefixExpression expression) void
visitPropertyExpression
(PropertyExpression expression) void
visitRangeExpression
(RangeExpression expression) void
visitReturnStatement
(ReturnStatement statement) void
visitShortTernaryExpression
(ElvisOperatorExpression expression) void
visitSpreadExpression
(SpreadExpression expression) void
visitSpreadMapExpression
(SpreadMapExpression expression) void
void
visitSwitch
(SwitchStatement statement) void
visitSynchronizedStatement
(SynchronizedStatement statement) void
visitTernaryExpression
(TernaryExpression expression) void
visitThrowStatement
(ThrowStatement statement) void
visitTryCatchFinally
(TryCatchStatement statement) void
visitTupleExpression
(TupleExpression expression) void
visitUnaryMinusExpression
(UnaryMinusExpression expression) void
visitUnaryPlusExpression
(UnaryPlusExpression expression) void
visitVariableExpression
(VariableExpression expression) void
visitWhileLoop
(WhileStatement loop) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.codehaus.groovy.ast.GroovyCodeVisitor
visit, visit, visitEmptyExpression, visitListOfExpressions
-
Constructor Details
-
CodeVisitorSupport
public CodeVisitorSupport()
-
-
Method Details
-
visitBlockStatement
- Specified by:
visitBlockStatement
in interfaceGroovyCodeVisitor
-
visitForLoop
- Specified by:
visitForLoop
in interfaceGroovyCodeVisitor
-
visitWhileLoop
- Specified by:
visitWhileLoop
in interfaceGroovyCodeVisitor
-
visitDoWhileLoop
- Specified by:
visitDoWhileLoop
in interfaceGroovyCodeVisitor
-
visitIfElse
- Specified by:
visitIfElse
in interfaceGroovyCodeVisitor
-
visitExpressionStatement
- Specified by:
visitExpressionStatement
in interfaceGroovyCodeVisitor
-
visitReturnStatement
- Specified by:
visitReturnStatement
in interfaceGroovyCodeVisitor
-
visitAssertStatement
- Specified by:
visitAssertStatement
in interfaceGroovyCodeVisitor
-
visitTryCatchFinally
- Specified by:
visitTryCatchFinally
in interfaceGroovyCodeVisitor
-
visitEmptyStatement
- Specified by:
visitEmptyStatement
in interfaceGroovyCodeVisitor
-
visitSwitch
- Specified by:
visitSwitch
in interfaceGroovyCodeVisitor
-
afterSwitchConditionExpressionVisited
-
visitCaseStatement
- Specified by:
visitCaseStatement
in interfaceGroovyCodeVisitor
-
visitBreakStatement
- Specified by:
visitBreakStatement
in interfaceGroovyCodeVisitor
-
visitContinueStatement
- Specified by:
visitContinueStatement
in interfaceGroovyCodeVisitor
-
visitSynchronizedStatement
- Specified by:
visitSynchronizedStatement
in interfaceGroovyCodeVisitor
-
visitThrowStatement
- Specified by:
visitThrowStatement
in interfaceGroovyCodeVisitor
-
visitMethodCallExpression
- Specified by:
visitMethodCallExpression
in interfaceGroovyCodeVisitor
-
visitStaticMethodCallExpression
- Specified by:
visitStaticMethodCallExpression
in interfaceGroovyCodeVisitor
-
visitConstructorCallExpression
- Specified by:
visitConstructorCallExpression
in interfaceGroovyCodeVisitor
-
visitBinaryExpression
- Specified by:
visitBinaryExpression
in interfaceGroovyCodeVisitor
-
visitTernaryExpression
- Specified by:
visitTernaryExpression
in interfaceGroovyCodeVisitor
-
visitShortTernaryExpression
- Specified by:
visitShortTernaryExpression
in interfaceGroovyCodeVisitor
-
visitPostfixExpression
- Specified by:
visitPostfixExpression
in interfaceGroovyCodeVisitor
-
visitPrefixExpression
- Specified by:
visitPrefixExpression
in interfaceGroovyCodeVisitor
-
visitBooleanExpression
- Specified by:
visitBooleanExpression
in interfaceGroovyCodeVisitor
-
visitNotExpression
- Specified by:
visitNotExpression
in interfaceGroovyCodeVisitor
-
visitClosureExpression
- Specified by:
visitClosureExpression
in interfaceGroovyCodeVisitor
-
visitLambdaExpression
- Specified by:
visitLambdaExpression
in interfaceGroovyCodeVisitor
-
visitTupleExpression
- Specified by:
visitTupleExpression
in interfaceGroovyCodeVisitor
-
visitListExpression
- Specified by:
visitListExpression
in interfaceGroovyCodeVisitor
-
visitArrayExpression
- Specified by:
visitArrayExpression
in interfaceGroovyCodeVisitor
-
visitMapExpression
- Specified by:
visitMapExpression
in interfaceGroovyCodeVisitor
-
visitMapEntryExpression
- Specified by:
visitMapEntryExpression
in interfaceGroovyCodeVisitor
-
visitRangeExpression
- Specified by:
visitRangeExpression
in interfaceGroovyCodeVisitor
-
visitSpreadExpression
- Specified by:
visitSpreadExpression
in interfaceGroovyCodeVisitor
-
visitSpreadMapExpression
- Specified by:
visitSpreadMapExpression
in interfaceGroovyCodeVisitor
-
visitMethodPointerExpression
- Specified by:
visitMethodPointerExpression
in interfaceGroovyCodeVisitor
-
visitMethodReferenceExpression
- Specified by:
visitMethodReferenceExpression
in interfaceGroovyCodeVisitor
-
visitUnaryMinusExpression
- Specified by:
visitUnaryMinusExpression
in interfaceGroovyCodeVisitor
-
visitUnaryPlusExpression
- Specified by:
visitUnaryPlusExpression
in interfaceGroovyCodeVisitor
-
visitBitwiseNegationExpression
- Specified by:
visitBitwiseNegationExpression
in interfaceGroovyCodeVisitor
-
visitCastExpression
- Specified by:
visitCastExpression
in interfaceGroovyCodeVisitor
-
visitConstantExpression
- Specified by:
visitConstantExpression
in interfaceGroovyCodeVisitor
-
visitClassExpression
- Specified by:
visitClassExpression
in interfaceGroovyCodeVisitor
-
visitVariableExpression
- Specified by:
visitVariableExpression
in interfaceGroovyCodeVisitor
-
visitDeclarationExpression
- Specified by:
visitDeclarationExpression
in interfaceGroovyCodeVisitor
-
visitPropertyExpression
- Specified by:
visitPropertyExpression
in interfaceGroovyCodeVisitor
-
visitAttributeExpression
- Specified by:
visitAttributeExpression
in interfaceGroovyCodeVisitor
-
visitFieldExpression
- Specified by:
visitFieldExpression
in interfaceGroovyCodeVisitor
-
visitGStringExpression
- Specified by:
visitGStringExpression
in interfaceGroovyCodeVisitor
-
visitCatchStatement
- Specified by:
visitCatchStatement
in interfaceGroovyCodeVisitor
-
visitArgumentlistExpression
- Specified by:
visitArgumentlistExpression
in interfaceGroovyCodeVisitor
-
visitClosureListExpression
- Specified by:
visitClosureListExpression
in interfaceGroovyCodeVisitor
-
visitBytecodeExpression
- Specified by:
visitBytecodeExpression
in interfaceGroovyCodeVisitor
-