Package spoon.reflect.visitor
Class CtAbstractVisitor
java.lang.Object
spoon.reflect.visitor.CtAbstractVisitor
- All Implemented Interfaces:
CtVisitor
- Direct Known Subclasses:
CtAbstractBiScanner
Provides an empty implementation of CtVisitor.
See
CtScanner
for a much more powerful implementation of CtVisitor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
voidvisitCtAnnotation
(CtAnnotation<A> annotation) Visits an annotation.<T> void
visitCtAnnotationFieldAccess
(CtAnnotationFieldAccess<T> annotationFieldAccess) Visits a field of an annotation.<T> void
visitCtAnnotationMethod
(CtAnnotationMethod<T> annotationMethod) Visits an annotation method declaration.<A extends Annotation>
voidvisitCtAnnotationType
(CtAnnotationType<A> annotationType) Visits an annotation type declaration.void
visitCtAnonymousExecutable
(CtAnonymousExecutable anonymousExec) Visits an anonymous executable.<T> void
visitCtArrayRead
(CtArrayRead<T> arrayRead) Visits an array read access.<T> void
visitCtArrayTypeReference
(CtArrayTypeReference<T> reference) Visits a reference to an array type.<T> void
visitCtArrayWrite
(CtArrayWrite<T> arrayWrite) Visits an array write access.<T> void
visitCtAssert
(CtAssert<T> asserted) Visits an assert.<T,
A extends T>
voidvisitCtAssignment
(CtAssignment<T, A> assignement) Visits an assignment.<T> void
visitCtBinaryOperator
(CtBinaryOperator<T> operator) Visits a binary operator.<R> void
visitCtBlock
(CtBlock<R> block) Visits a block of code.void
visitCtBreak
(CtBreak breakStatement) Visits abreak
statement.<S> void
visitCtCase
(CtCase<S> caseStatement) Visits acase
clause.void
visitCtCasePattern
(CtCasePattern casePattern) Visits a case patternvoid
visitCtCatch
(CtCatch catchBlock) Visits acatch
clause.<T> void
visitCtCatchVariable
(CtCatchVariable<T> catchVariable) Visits a catch variable declaration.<T> void
visitCtCatchVariableReference
(CtCatchVariableReference<T> reference) Visits a reference to a catch variable.<T> void
visitCtClass
(CtClass<T> ctClass) Visits a class declaration.<T> void
visitCtCodeSnippetExpression
(CtCodeSnippetExpression<T> expression) Visits a code snippet expression.void
Visits a code snippet statement.void
visitCtComment
(CtComment comment) Visits a commentvoid
visitCtCompilationUnit
(CtCompilationUnit compilationUnit) Visits a compilation unit<T> void
visitCtConditional
(CtConditional<T> conditional) Visits a conditional expression<T> void
Visits a constructor declaration.<T> void
visitCtConstructorCall
(CtConstructorCall<T> ctConstructorCall) Visits a call to a constructor.void
visitCtContinue
(CtContinue continueStatement) Visits acontinue
statement.void
Visits ado
loop.<T extends Enum<?>>
voidvisitCtEnum
(CtEnum<T> ctEnum) Visits an enumeration declaration.<T> void
visitCtEnumValue
(CtEnumValue<T> enumValue) Visits an enum value declaration.<T> void
visitCtExecutableReference
(CtExecutableReference<T> reference) Visits a reference to an executable.<T,
E extends CtExpression<?>>
voidvisitCtExecutableReferenceExpression
(CtExecutableReferenceExpression<T, E> expression) Visits a reference to an executable.<T> void
visitCtField
(CtField<T> f) Visits a field declaration.<T> void
visitCtFieldRead
(CtFieldRead<T> fieldRead) Visits a field read access.<T> void
visitCtFieldReference
(CtFieldReference<T> reference) Visits a reference to a field.<T> void
visitCtFieldWrite
(CtFieldWrite<T> fieldWrite) Visits a field write access.void
visitCtFor
(CtFor forLoop) Visits afor
loop.void
visitCtForEach
(CtForEach foreach) Visits an enhancedfor
loop.void
Visits anif
statement.void
visitCtImport
(CtImport ctImport) Visits an import declaration<T> void
visitCtInterface
(CtInterface<T> intrface) Visits an interface declaration.<T> void
visitCtIntersectionTypeReference
(CtIntersectionTypeReference<T> reference) Visits an intersection type.<T> void
visitCtInvocation
(CtInvocation<T> invocation) Visits an executable invocation.void
visitCtJavaDoc
(CtJavaDoc javadoc) Visits a javadoc commentvoid
visitCtJavaDocTag
(CtJavaDocTag docTag) Visits a javadoc tag<T> void
visitCtLambda
(CtLambda<T> lambda) Visits an anonymous method construction.<T> void
visitCtLiteral
(CtLiteral<T> literal) Visits a literal expression.<T> void
visitCtLocalVariable
(CtLocalVariable<T> localVariable) Visits a local variable declaration.<T> void
visitCtLocalVariableReference
(CtLocalVariableReference<T> reference) Visits a reference to a local variable.<T> void
visitCtMethod
(CtMethod<T> m) Visits a method declaration.void
visitCtModule
(CtModule module) Visits a module declarationvoid
visitCtModuleReference
(CtModuleReference moduleReference) Visits a module referencevoid
visitCtModuleRequirement
(CtModuleRequirement moduleRequirement) Visits a "require" directive in a module declaration.<T> void
visitCtNewArray
(CtNewArray<T> newArray) Visits an array construction.<T> void
visitCtNewClass
(CtNewClass<T> newClass) Visits an anonymous class construction.<T,
A extends T>
voidvisitCtOperatorAssignment
(CtOperatorAssignment<T, A> assignment) Visits an operator assignment.void
visitCtPackage
(CtPackage ctPackage) Visits a package declaration.void
visitCtPackageDeclaration
(CtPackageDeclaration packageDeclaration) Visits a package declarationvoid
visitCtPackageExport
(CtPackageExport moduleExport) Visits a package export in a module declaration.void
visitCtPackageReference
(CtPackageReference reference) Visits a reference to a package.<T> void
visitCtParameter
(CtParameter<T> parameter) Visits a parameter declaration.<T> void
visitCtParameterReference
(CtParameterReference<T> reference) Visits a reference to a parameter.void
visitCtProvidedService
(CtProvidedService moduleProvidedService) Visits a "provides" directive in a module declaration.void
visitCtReceiverParameter
(CtReceiverParameter receiverParameter) Visits a receiver parameter.void
visitCtRecord
(CtRecord recordType) Visits a record.void
visitCtRecordComponent
(CtRecordComponent recordComponent) Visits a record component.void
visitCtRecordPattern
(CtRecordPattern recordPattern) Visits a record pattern.<R> void
visitCtReturn
(CtReturn<R> returnStatement) Visits areturn
statement.<R> void
visitCtStatementList
(CtStatementList statements) Visits a statement list.<T> void
Visits an access to a super invocation.<S> void
visitCtSwitch
(CtSwitch<S> switchStatement) Visits aswitch
statement.<T,
S> void visitCtSwitchExpression
(CtSwitchExpression<T, S> switchExpression) Visits aswitch
expression.void
visitCtSynchronized
(CtSynchronized synchro) Visits asynchronized
modifier.void
visitCtTextBlock
(CtTextBlock ctTextBlock) Visits a literal TextBlock string.<T> void
visitCtThisAccess
(CtThisAccess<T> thisAccess) Visits a this access.void
visitCtThrow
(CtThrow throwStatement) Visits athrow
statement.void
visitCtTry
(CtTry tryBlock) Visits atry
statement.void
visitCtTryWithResource
(CtTryWithResource tryWithResource) Visits atry
with resource statement.<T> void
visitCtTypeAccess
(CtTypeAccess<T> typeAccess) Visits a type access.void
visitCtTypeMemberWildcardImportReference
(CtTypeMemberWildcardImportReference wildcardReference) Visits an import wildcard static type member referencevoid
visitCtTypeParameter
(CtTypeParameter typeParameter) Visits a type parameter declaration.void
Visits a reference to a type parameter.void
visitCtTypePattern
(CtTypePattern pattern) Visits a pattern.<T> void
visitCtTypeReference
(CtTypeReference<T> reference) Visits a reference to a type.<T> void
visitCtUnaryOperator
(CtUnaryOperator<T> operator) Visits a unary operator.<T> void
visitCtUnboundVariableReference
(CtUnboundVariableReference<T> reference) Visits a reference to an unbound fieldvoid
visitCtUnnamedPattern
(CtUnnamedPattern unnamedPattern) Visits an unnamed pattern.void
visitCtUsedService
(CtUsedService usedService) Visits a "uses" directive in a module declaration.<T> void
visitCtVariableRead
(CtVariableRead<T> variableRead) Visits a variable read access.<T> void
visitCtVariableWrite
(CtVariableWrite<T> variableWrite) Visits a variable write access.void
visitCtWhile
(CtWhile whileLoop) Visits awhile
loop.void
visitCtWildcardReference
(CtWildcardReference wildcardReference) Visits a reference to a wildcard.void
visitCtYieldStatement
(CtYieldStatement statement) Visits a yield statement.
-
Constructor Details
-
CtAbstractVisitor
public CtAbstractVisitor()
-
-
Method Details
-
visitCtAnnotation
Description copied from interface:CtVisitor
Visits an annotation.- Specified by:
visitCtAnnotation
in interfaceCtVisitor
-
visitCtCodeSnippetExpression
Description copied from interface:CtVisitor
Visits a code snippet expression.- Specified by:
visitCtCodeSnippetExpression
in interfaceCtVisitor
-
visitCtCodeSnippetStatement
Description copied from interface:CtVisitor
Visits a code snippet statement.- Specified by:
visitCtCodeSnippetStatement
in interfaceCtVisitor
-
visitCtAnnotationType
Description copied from interface:CtVisitor
Visits an annotation type declaration.- Specified by:
visitCtAnnotationType
in interfaceCtVisitor
-
visitCtAnonymousExecutable
Description copied from interface:CtVisitor
Visits an anonymous executable.- Specified by:
visitCtAnonymousExecutable
in interfaceCtVisitor
-
visitCtArrayRead
Description copied from interface:CtVisitor
Visits an array read access.- Specified by:
visitCtArrayRead
in interfaceCtVisitor
-
visitCtArrayWrite
Description copied from interface:CtVisitor
Visits an array write access.- Specified by:
visitCtArrayWrite
in interfaceCtVisitor
-
visitCtArrayTypeReference
Description copied from interface:CtVisitor
Visits a reference to an array type.- Specified by:
visitCtArrayTypeReference
in interfaceCtVisitor
-
visitCtAssert
Description copied from interface:CtVisitor
Visits an assert.- Specified by:
visitCtAssert
in interfaceCtVisitor
-
visitCtAssignment
Description copied from interface:CtVisitor
Visits an assignment.- Specified by:
visitCtAssignment
in interfaceCtVisitor
-
visitCtBinaryOperator
Description copied from interface:CtVisitor
Visits a binary operator.- Specified by:
visitCtBinaryOperator
in interfaceCtVisitor
-
visitCtBlock
Description copied from interface:CtVisitor
Visits a block of code.- Specified by:
visitCtBlock
in interfaceCtVisitor
-
visitCtBreak
Description copied from interface:CtVisitor
Visits abreak
statement.- Specified by:
visitCtBreak
in interfaceCtVisitor
-
visitCtCase
Description copied from interface:CtVisitor
Visits acase
clause.- Specified by:
visitCtCase
in interfaceCtVisitor
-
visitCtCatch
Description copied from interface:CtVisitor
Visits acatch
clause.- Specified by:
visitCtCatch
in interfaceCtVisitor
-
visitCtClass
Description copied from interface:CtVisitor
Visits a class declaration.- Specified by:
visitCtClass
in interfaceCtVisitor
-
visitCtTypeParameter
Description copied from interface:CtVisitor
Visits a type parameter declaration.- Specified by:
visitCtTypeParameter
in interfaceCtVisitor
-
visitCtConditional
Description copied from interface:CtVisitor
Visits a conditional expression- Specified by:
visitCtConditional
in interfaceCtVisitor
-
visitCtConstructor
Description copied from interface:CtVisitor
Visits a constructor declaration.- Specified by:
visitCtConstructor
in interfaceCtVisitor
-
visitCtContinue
Description copied from interface:CtVisitor
Visits acontinue
statement.- Specified by:
visitCtContinue
in interfaceCtVisitor
-
visitCtDo
Description copied from interface:CtVisitor
Visits ado
loop. -
visitCtEnum
Description copied from interface:CtVisitor
Visits an enumeration declaration.- Specified by:
visitCtEnum
in interfaceCtVisitor
-
visitCtExecutableReference
Description copied from interface:CtVisitor
Visits a reference to an executable.- Specified by:
visitCtExecutableReference
in interfaceCtVisitor
-
visitCtField
Description copied from interface:CtVisitor
Visits a field declaration.- Specified by:
visitCtField
in interfaceCtVisitor
-
visitCtEnumValue
Description copied from interface:CtVisitor
Visits an enum value declaration.- Specified by:
visitCtEnumValue
in interfaceCtVisitor
-
visitCtFieldReference
Description copied from interface:CtVisitor
Visits a reference to a field.- Specified by:
visitCtFieldReference
in interfaceCtVisitor
-
visitCtFor
Description copied from interface:CtVisitor
Visits afor
loop.- Specified by:
visitCtFor
in interfaceCtVisitor
-
visitCtForEach
Description copied from interface:CtVisitor
Visits an enhancedfor
loop.- Specified by:
visitCtForEach
in interfaceCtVisitor
-
visitCtIf
Description copied from interface:CtVisitor
Visits anif
statement. -
visitCtInterface
Description copied from interface:CtVisitor
Visits an interface declaration.- Specified by:
visitCtInterface
in interfaceCtVisitor
-
visitCtInvocation
Description copied from interface:CtVisitor
Visits an executable invocation.- Specified by:
visitCtInvocation
in interfaceCtVisitor
-
visitCtLiteral
Description copied from interface:CtVisitor
Visits a literal expression.- Specified by:
visitCtLiteral
in interfaceCtVisitor
-
visitCtTextBlock
Description copied from interface:CtVisitor
Visits a literal TextBlock string.- Specified by:
visitCtTextBlock
in interfaceCtVisitor
-
visitCtLocalVariable
Description copied from interface:CtVisitor
Visits a local variable declaration.- Specified by:
visitCtLocalVariable
in interfaceCtVisitor
-
visitCtLocalVariableReference
Description copied from interface:CtVisitor
Visits a reference to a local variable.- Specified by:
visitCtLocalVariableReference
in interfaceCtVisitor
-
visitCtCatchVariable
Description copied from interface:CtVisitor
Visits a catch variable declaration.- Specified by:
visitCtCatchVariable
in interfaceCtVisitor
-
visitCtMethod
Description copied from interface:CtVisitor
Visits a method declaration.- Specified by:
visitCtMethod
in interfaceCtVisitor
-
visitCtAnnotationMethod
Description copied from interface:CtVisitor
Visits an annotation method declaration.- Specified by:
visitCtAnnotationMethod
in interfaceCtVisitor
-
visitCtNewArray
Description copied from interface:CtVisitor
Visits an array construction.- Specified by:
visitCtNewArray
in interfaceCtVisitor
-
visitCtConstructorCall
Description copied from interface:CtVisitor
Visits a call to a constructor.- Specified by:
visitCtConstructorCall
in interfaceCtVisitor
-
visitCtNewClass
Description copied from interface:CtVisitor
Visits an anonymous class construction.- Specified by:
visitCtNewClass
in interfaceCtVisitor
-
visitCtLambda
Description copied from interface:CtVisitor
Visits an anonymous method construction.- Specified by:
visitCtLambda
in interfaceCtVisitor
-
visitCtExecutableReferenceExpression
public <T,E extends CtExpression<?>> void visitCtExecutableReferenceExpression(CtExecutableReferenceExpression<T, E> expression) Description copied from interface:CtVisitor
Visits a reference to an executable.- Specified by:
visitCtExecutableReferenceExpression
in interfaceCtVisitor
-
visitCtOperatorAssignment
Description copied from interface:CtVisitor
Visits an operator assignment.- Specified by:
visitCtOperatorAssignment
in interfaceCtVisitor
-
visitCtPackage
Description copied from interface:CtVisitor
Visits a package declaration.- Specified by:
visitCtPackage
in interfaceCtVisitor
-
visitCtPackageReference
Description copied from interface:CtVisitor
Visits a reference to a package.- Specified by:
visitCtPackageReference
in interfaceCtVisitor
-
visitCtParameter
Description copied from interface:CtVisitor
Visits a parameter declaration.- Specified by:
visitCtParameter
in interfaceCtVisitor
-
visitCtParameterReference
Description copied from interface:CtVisitor
Visits a reference to a parameter.- Specified by:
visitCtParameterReference
in interfaceCtVisitor
-
visitCtReturn
Description copied from interface:CtVisitor
Visits areturn
statement.- Specified by:
visitCtReturn
in interfaceCtVisitor
-
visitCtStatementList
Description copied from interface:CtVisitor
Visits a statement list.- Specified by:
visitCtStatementList
in interfaceCtVisitor
-
visitCtSwitch
Description copied from interface:CtVisitor
Visits aswitch
statement.- Specified by:
visitCtSwitch
in interfaceCtVisitor
-
visitCtSwitchExpression
Description copied from interface:CtVisitor
Visits aswitch
expression.- Specified by:
visitCtSwitchExpression
in interfaceCtVisitor
-
visitCtSynchronized
Description copied from interface:CtVisitor
Visits asynchronized
modifier.- Specified by:
visitCtSynchronized
in interfaceCtVisitor
-
visitCtThrow
Description copied from interface:CtVisitor
Visits athrow
statement.- Specified by:
visitCtThrow
in interfaceCtVisitor
-
visitCtTry
Description copied from interface:CtVisitor
Visits atry
statement.- Specified by:
visitCtTry
in interfaceCtVisitor
-
visitCtTryWithResource
Description copied from interface:CtVisitor
Visits atry
with resource statement.- Specified by:
visitCtTryWithResource
in interfaceCtVisitor
-
visitCtTypeParameterReference
Description copied from interface:CtVisitor
Visits a reference to a type parameter.- Specified by:
visitCtTypeParameterReference
in interfaceCtVisitor
-
visitCtWildcardReference
Description copied from interface:CtVisitor
Visits a reference to a wildcard.- Specified by:
visitCtWildcardReference
in interfaceCtVisitor
-
visitCtIntersectionTypeReference
Description copied from interface:CtVisitor
Visits an intersection type.- Specified by:
visitCtIntersectionTypeReference
in interfaceCtVisitor
-
visitCtTypeReference
Description copied from interface:CtVisitor
Visits a reference to a type.- Specified by:
visitCtTypeReference
in interfaceCtVisitor
-
visitCtTypeAccess
Description copied from interface:CtVisitor
Visits a type access.- Specified by:
visitCtTypeAccess
in interfaceCtVisitor
-
visitCtUnaryOperator
Description copied from interface:CtVisitor
Visits a unary operator.- Specified by:
visitCtUnaryOperator
in interfaceCtVisitor
-
visitCtVariableRead
Description copied from interface:CtVisitor
Visits a variable read access.- Specified by:
visitCtVariableRead
in interfaceCtVisitor
-
visitCtVariableWrite
Description copied from interface:CtVisitor
Visits a variable write access.- Specified by:
visitCtVariableWrite
in interfaceCtVisitor
-
visitCtWhile
Description copied from interface:CtVisitor
Visits awhile
loop.- Specified by:
visitCtWhile
in interfaceCtVisitor
-
visitCtAnnotationFieldAccess
Description copied from interface:CtVisitor
Visits a field of an annotation.- Specified by:
visitCtAnnotationFieldAccess
in interfaceCtVisitor
-
visitCtThisAccess
Description copied from interface:CtVisitor
Visits a this access.- Specified by:
visitCtThisAccess
in interfaceCtVisitor
-
visitCtCatchVariableReference
Description copied from interface:CtVisitor
Visits a reference to a catch variable.- Specified by:
visitCtCatchVariableReference
in interfaceCtVisitor
-
visitCtUnboundVariableReference
Description copied from interface:CtVisitor
Visits a reference to an unbound field- Specified by:
visitCtUnboundVariableReference
in interfaceCtVisitor
-
visitCtFieldRead
Description copied from interface:CtVisitor
Visits a field read access.- Specified by:
visitCtFieldRead
in interfaceCtVisitor
-
visitCtFieldWrite
Description copied from interface:CtVisitor
Visits a field write access.- Specified by:
visitCtFieldWrite
in interfaceCtVisitor
-
visitCtSuperAccess
Description copied from interface:CtVisitor
Visits an access to a super invocation.- Specified by:
visitCtSuperAccess
in interfaceCtVisitor
-
visitCtComment
Description copied from interface:CtVisitor
Visits a comment- Specified by:
visitCtComment
in interfaceCtVisitor
-
visitCtJavaDoc
Description copied from interface:CtVisitor
Visits a javadoc comment- Specified by:
visitCtJavaDoc
in interfaceCtVisitor
-
visitCtJavaDocTag
Description copied from interface:CtVisitor
Visits a javadoc tag- Specified by:
visitCtJavaDocTag
in interfaceCtVisitor
-
visitCtImport
Description copied from interface:CtVisitor
Visits an import declaration- Specified by:
visitCtImport
in interfaceCtVisitor
-
visitCtModule
Description copied from interface:CtVisitor
Visits a module declaration- Specified by:
visitCtModule
in interfaceCtVisitor
-
visitCtModuleReference
Description copied from interface:CtVisitor
Visits a module reference- Specified by:
visitCtModuleReference
in interfaceCtVisitor
-
visitCtPackageExport
Description copied from interface:CtVisitor
Visits a package export in a module declaration.- Specified by:
visitCtPackageExport
in interfaceCtVisitor
-
visitCtModuleRequirement
Description copied from interface:CtVisitor
Visits a "require" directive in a module declaration.- Specified by:
visitCtModuleRequirement
in interfaceCtVisitor
-
visitCtProvidedService
Description copied from interface:CtVisitor
Visits a "provides" directive in a module declaration.- Specified by:
visitCtProvidedService
in interfaceCtVisitor
-
visitCtUsedService
Description copied from interface:CtVisitor
Visits a "uses" directive in a module declaration.- Specified by:
visitCtUsedService
in interfaceCtVisitor
-
visitCtCompilationUnit
Description copied from interface:CtVisitor
Visits a compilation unit- Specified by:
visitCtCompilationUnit
in interfaceCtVisitor
-
visitCtPackageDeclaration
Description copied from interface:CtVisitor
Visits a package declaration- Specified by:
visitCtPackageDeclaration
in interfaceCtVisitor
-
visitCtTypeMemberWildcardImportReference
public void visitCtTypeMemberWildcardImportReference(CtTypeMemberWildcardImportReference wildcardReference) Description copied from interface:CtVisitor
Visits an import wildcard static type member reference- Specified by:
visitCtTypeMemberWildcardImportReference
in interfaceCtVisitor
-
visitCtYieldStatement
Description copied from interface:CtVisitor
Visits a yield statement.- Specified by:
visitCtYieldStatement
in interfaceCtVisitor
-
visitCtTypePattern
Description copied from interface:CtVisitor
Visits a pattern.- Specified by:
visitCtTypePattern
in interfaceCtVisitor
- Parameters:
pattern
- the pattern to visit.
-
visitCtRecord
Description copied from interface:CtVisitor
Visits a record.- Specified by:
visitCtRecord
in interfaceCtVisitor
- Parameters:
recordType
- the record to visit.
-
visitCtRecordComponent
Description copied from interface:CtVisitor
Visits a record component.- Specified by:
visitCtRecordComponent
in interfaceCtVisitor
- Parameters:
recordComponent
- the record component to visit.
-
visitCtCasePattern
Description copied from interface:CtVisitor
Visits a case pattern- Specified by:
visitCtCasePattern
in interfaceCtVisitor
- Parameters:
casePattern
- the case pattern to visit.
-
visitCtReceiverParameter
Description copied from interface:CtVisitor
Visits a receiver parameter.- Specified by:
visitCtReceiverParameter
in interfaceCtVisitor
- Parameters:
receiverParameter
- the receiver parameter to visit.
-
visitCtRecordPattern
Description copied from interface:CtVisitor
Visits a record pattern.- Specified by:
visitCtRecordPattern
in interfaceCtVisitor
- Parameters:
recordPattern
- the record pattern to visit.
-
visitCtUnnamedPattern
Description copied from interface:CtVisitor
Visits an unnamed pattern.- Specified by:
visitCtUnnamedPattern
in interfaceCtVisitor
- Parameters:
unnamedPattern
- the unnamed pattern to visit.
-