Package org.codehaus.groovy.ast
Class ClassCodeVisitorSupport
java.lang.Object
org.codehaus.groovy.ast.CodeVisitorSupport
org.codehaus.groovy.ast.ClassCodeVisitorSupport
- All Implemented Interfaces:
GroovyClassVisitor
,GroovyCodeVisitor
,ErrorCollecting
- Direct Known Subclasses:
AbstractInterruptibleASTTransformation
,AnnotationConstantsVisitor
,AssertStatementCreationUtility.AddAssertionCallStatementToReturnStatementVisitor
,AssertStatementCreationUtility.AddResultReturnStatementVisitor
,AssertStatementCreationUtility.ReturnStatementVisitor
,ASTTransformationCollectorCodeVisitor
,ASTTransformationVisitor
,BaseVisitor
,ClassCodeExpressionTransformer
,ClassCompletionVerifier
,ClassGenerator
,ContextualClassCodeVisitor
,DependencyTracker
,EnumCompletionVisitor
,EnumVisitor
,ExtendedVerifier
,FinalVariableAnalyzer
,GenericsVisitor
,GrabAnnotationTransformation
,GroovydocVisitor
,InnerClassVisitorHelper
,InstanceOfVerifier
,LabelVerifier
,SharedVariableCollector
,StaticTypeCheckingVisitor
,StaticTypeCheckingVisitor.VariableExpressionTypeMemoizer
,StaticVerifier
,VariableScopeVisitor
public abstract class ClassCodeVisitorSupport
extends CodeVisitorSupport
implements ErrorCollecting, GroovyClassVisitor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected abstract SourceUnit
protected void
protected final void
visitAnnotations
(Iterable<AnnotationNode> nodes) void
void
visitAssertStatement
(AssertStatement statement) void
visitBlockStatement
(BlockStatement statement) void
visitBreakStatement
(BreakStatement statement) void
visitCaseStatement
(CaseStatement statement) void
visitCatchStatement
(CatchStatement statement) void
visitClass
(ClassNode node) Visit a ClassNode.protected void
void
Visit a ConstructorNode.protected void
visitConstructorOrMethod
(MethodNode node, boolean isConstructor) void
visitContinueStatement
(ContinueStatement statement) void
visitDeclarationExpression
(DeclarationExpression expression) void
visitDoWhileLoop
(DoWhileStatement statement) void
visitExpressionStatement
(ExpressionStatement statement) void
visitField
(FieldNode node) Visit a FieldNode.void
visitForLoop
(ForStatement statement) void
visitIfElse
(IfStatement statement) void
visitImports
(ModuleNode node) void
visitMethod
(MethodNode node) Visit a MethodNode.protected void
void
visitPackage
(PackageNode node) void
visitProperty
(PropertyNode node) Visit a PropertyNode.void
visitReturnStatement
(ReturnStatement statement) protected void
visitStatement
(Statement statement) void
visitSwitch
(SwitchStatement statement) void
visitSynchronizedStatement
(SynchronizedStatement statement) void
visitThrowStatement
(ThrowStatement statement) void
visitTryCatchFinally
(TryCatchStatement statement) void
visitWhileLoop
(WhileStatement statement) Methods inherited from class org.codehaus.groovy.ast.CodeVisitorSupport
afterSwitchConditionExpressionVisited, visitArgumentlistExpression, visitArrayExpression, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBytecodeExpression, visitCastExpression, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitEmptyStatement, visitFieldExpression, visitGStringExpression, visitLambdaExpression, visitListExpression, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitMethodReferenceExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpression
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
-
ClassCodeVisitorSupport
public ClassCodeVisitorSupport()
-
-
Method Details
-
visitClass
Description copied from interface:GroovyClassVisitor
Visit a ClassNode.- Specified by:
visitClass
in interfaceGroovyClassVisitor
-
visitAnnotations
-
visitAnnotations
-
visitAnnotation
-
visitPackage
-
visitImports
-
visitConstructor
Description copied from interface:GroovyClassVisitor
Visit a ConstructorNode.- Specified by:
visitConstructor
in interfaceGroovyClassVisitor
-
visitMethod
Description copied from interface:GroovyClassVisitor
Visit a MethodNode.- Specified by:
visitMethod
in interfaceGroovyClassVisitor
-
visitConstructorOrMethod
-
visitField
Description copied from interface:GroovyClassVisitor
Visit a FieldNode.- Specified by:
visitField
in interfaceGroovyClassVisitor
-
visitProperty
Description copied from interface:GroovyClassVisitor
Visit a PropertyNode.- Specified by:
visitProperty
in interfaceGroovyClassVisitor
-
visitClassCodeContainer
-
visitObjectInitializerStatements
-
visitDeclarationExpression
- Specified by:
visitDeclarationExpression
in interfaceGroovyCodeVisitor
- Overrides:
visitDeclarationExpression
in classCodeVisitorSupport
-
visitAssertStatement
- Specified by:
visitAssertStatement
in interfaceGroovyCodeVisitor
- Overrides:
visitAssertStatement
in classCodeVisitorSupport
-
visitBlockStatement
- Specified by:
visitBlockStatement
in interfaceGroovyCodeVisitor
- Overrides:
visitBlockStatement
in classCodeVisitorSupport
-
visitBreakStatement
- Specified by:
visitBreakStatement
in interfaceGroovyCodeVisitor
- Overrides:
visitBreakStatement
in classCodeVisitorSupport
-
visitCaseStatement
- Specified by:
visitCaseStatement
in interfaceGroovyCodeVisitor
- Overrides:
visitCaseStatement
in classCodeVisitorSupport
-
visitCatchStatement
- Specified by:
visitCatchStatement
in interfaceGroovyCodeVisitor
- Overrides:
visitCatchStatement
in classCodeVisitorSupport
-
visitContinueStatement
- Specified by:
visitContinueStatement
in interfaceGroovyCodeVisitor
- Overrides:
visitContinueStatement
in classCodeVisitorSupport
-
visitDoWhileLoop
- Specified by:
visitDoWhileLoop
in interfaceGroovyCodeVisitor
- Overrides:
visitDoWhileLoop
in classCodeVisitorSupport
-
visitExpressionStatement
- Specified by:
visitExpressionStatement
in interfaceGroovyCodeVisitor
- Overrides:
visitExpressionStatement
in classCodeVisitorSupport
-
visitForLoop
- Specified by:
visitForLoop
in interfaceGroovyCodeVisitor
- Overrides:
visitForLoop
in classCodeVisitorSupport
-
visitIfElse
- Specified by:
visitIfElse
in interfaceGroovyCodeVisitor
- Overrides:
visitIfElse
in classCodeVisitorSupport
-
visitReturnStatement
- Specified by:
visitReturnStatement
in interfaceGroovyCodeVisitor
- Overrides:
visitReturnStatement
in classCodeVisitorSupport
-
visitSwitch
- Specified by:
visitSwitch
in interfaceGroovyCodeVisitor
- Overrides:
visitSwitch
in classCodeVisitorSupport
-
visitSynchronizedStatement
- Specified by:
visitSynchronizedStatement
in interfaceGroovyCodeVisitor
- Overrides:
visitSynchronizedStatement
in classCodeVisitorSupport
-
visitThrowStatement
- Specified by:
visitThrowStatement
in interfaceGroovyCodeVisitor
- Overrides:
visitThrowStatement
in classCodeVisitorSupport
-
visitTryCatchFinally
- Specified by:
visitTryCatchFinally
in interfaceGroovyCodeVisitor
- Overrides:
visitTryCatchFinally
in classCodeVisitorSupport
-
visitWhileLoop
- Specified by:
visitWhileLoop
in interfaceGroovyCodeVisitor
- Overrides:
visitWhileLoop
in classCodeVisitorSupport
-
visitStatement
-
getSourceUnit
-
addError
- Specified by:
addError
in interfaceErrorCollecting
-