Package org.codehaus.groovy.ast
Interface GroovyCodeVisitor
- All Known Implementing Classes:
AbstractInterruptibleASTTransformation
,AnnotationClosureVisitor
,AnnotationConstantsVisitor
,AnnotationContractParameterVisitor
,AnnotationProcessorVisitor
,AsmClassGenerator
,AssertStatementCreationUtility.AddAssertionCallStatementToReturnStatementVisitor
,AssertStatementCreationUtility.AddResultReturnStatementVisitor
,AssertStatementCreationUtility.ReturnStatementVisitor
,ASTTransformationCollectorCodeVisitor
,ASTTransformationVisitor
,BaseVisitor
,ClassCodeExpressionTransformer
,ClassCodeVisitorSupport
,ClassCompletionVerifier
,ClassGenerator
,ClosureWriter.CorrectAccessedVariableVisitor
,CodeVisitorSupport
,CollectRecursiveCalls
,ContextualClassCodeVisitor
,ContractElementVisitor
,DependencyTracker
,DomainModelInjectionVisitor
,DummyClassGenerator
,DynamicSetterInjectionVisitor
,EnumCompletionVisitor
,EnumVisitor
,ExtendedVerifier
,FieldASTTransformation
,FinalVariableAnalyzer
,GenericsVisitor
,GinqAstBaseVisitor
,GinqAstBuilder
,GrabAnnotationTransformation
,GroovyCodeVisitorAdapter
,GroovydocVisitor
,HasRecursiveCalls
,InnerClassCompletionVisitor
,InnerClassVisitor
,InnerClassVisitorHelper
,InstanceOfVerifier
,JavaAwareResolveVisitor
,LabelVerifier
,LifecycleAfterTransformationVisitor
,LifecycleBeforeTransformationVisitor
,MethodInvocationTrap
,NewifyASTTransformation
,OperatorRenameASTTransformation
,OptimizerVisitor
,PlaceholderVisitor
,ResolveVisitor
,ReturnAdderForClosures
,SecureASTCustomizer.SecuringCodeVisitor
,SharedVariableCollector
,SqlOrderByVisitor
,SqlWhereVisitor
,StatementReplacer
,StaticCompilationTransformer
,StaticCompilationVisitor
,StaticImportVisitor
,StaticTypeCheckingVisitor
,StaticTypeCheckingVisitor.VariableExpressionTypeMemoizer
,StaticVerifier
,TransformingCodeVisitor
,VariableExpressionReplacer
,VariableScopeVisitor
,VerifierCodeVisitor
public interface GroovyCodeVisitor
An implementation of the visitor pattern for working with ASTNodes.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
visit
(Expression expression) default void
void
visitArgumentlistExpression
(ArgumentListExpression expression) void
visitArrayExpression
(ArrayExpression expression) void
visitAssertStatement
(AssertStatement statement) void
visitAttributeExpression
(AttributeExpression expression) void
visitBinaryExpression
(BinaryExpression expression) void
void
visitBlockStatement
(BlockStatement statement) 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
visitDoWhileLoop
(DoWhileStatement statement) default void
visitEmptyExpression
(EmptyExpression expression) default void
visitEmptyStatement
(EmptyStatement statement) void
visitExpressionStatement
(ExpressionStatement statement) void
visitFieldExpression
(FieldExpression expression) void
visitForLoop
(ForStatement statement) void
visitGStringExpression
(GStringExpression expression) void
visitIfElse
(IfStatement statement) void
visitLambdaExpression
(LambdaExpression expression) void
visitListExpression
(ListExpression expression) default void
visitListOfExpressions
(List<? extends Expression> list) void
visitMapEntryExpression
(MapEntryExpression expression) void
visitMapExpression
(MapExpression expression) void
visitMethodCallExpression
(MethodCallExpression expression) 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 statement)
-
Method Details
-
visitBlockStatement
-
visitForLoop
-
visitWhileLoop
-
visitDoWhileLoop
-
visitIfElse
-
visitExpressionStatement
-
visitReturnStatement
-
visitAssertStatement
-
visitTryCatchFinally
-
visitSwitch
-
visitCaseStatement
-
visitBreakStatement
-
visitContinueStatement
-
visitThrowStatement
-
visitSynchronizedStatement
-
visitCatchStatement
-
visitEmptyStatement
-
visit
-
visitMethodCallExpression
-
visitStaticMethodCallExpression
-
visitConstructorCallExpression
-
visitTernaryExpression
-
visitShortTernaryExpression
-
visitBinaryExpression
-
visitPrefixExpression
-
visitPostfixExpression
-
visitBooleanExpression
-
visitClosureExpression
-
visitLambdaExpression
-
visitTupleExpression
-
visitMapExpression
-
visitMapEntryExpression
-
visitListExpression
-
visitRangeExpression
-
visitPropertyExpression
-
visitAttributeExpression
-
visitFieldExpression
-
visitMethodPointerExpression
-
visitMethodReferenceExpression
-
visitConstantExpression
-
visitClassExpression
-
visitVariableExpression
-
visitDeclarationExpression
-
visitGStringExpression
-
visitArrayExpression
-
visitSpreadExpression
-
visitSpreadMapExpression
-
visitNotExpression
-
visitUnaryMinusExpression
-
visitUnaryPlusExpression
-
visitBitwiseNegationExpression
-
visitCastExpression
-
visitArgumentlistExpression
-
visitClosureListExpression
-
visitBytecodeExpression
-
visitEmptyExpression
-
visitListOfExpressions
-
visit
-