Package spoon.reflect.visitor
Class CtScanner
- java.lang.Object
-
- spoon.reflect.visitor.CtScanner
-
- All Implemented Interfaces:
CtVisitor
- Direct Known Subclasses:
AstParentConsistencyChecker
,CloneVisitor
,CtBFSIterator
,CtDequeScanner
,CtIterator
,EarlyTerminatingScanner
,ImportScannerImpl
,InlinePartialEvaluator
,MethodInvocationSearch
,ModelConsistencyChecker
,ProcessingVisitor
,ReplacementVisitor
,SignaturePrinter
,SpoonifierVisitor
,SpoonTreeBuilder
,TypeReferenceScanner
,VariableReferenceFunction.Visitor
,VariableScopeFunction.Visitor
,VisitorPartialEvaluator
public abstract class CtScanner extends Object implements CtVisitor
This visitor implements a deep-search scan on the model. Ensures that all children nodes are visited once, a visit means three method calls, one call to "enter", one call to "exit" and one call to scan. Is used by the processing and filtering engine.
-
-
Constructor Summary
Constructors Constructor Description CtScanner()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
enter(CtElement e)
This method is upcalled by the scanner when entering a scanned element.protected void
exit(CtElement e)
This method is upcalled by the scanner when exiting a scanned element.void
scan(Object o)
Generically scans an object that can be an element, a reference, or a collection of those.void
scan(Collection<? extends CtElement> elements)
Generically scans a collection of meta-model elements.void
scan(CtElement element)
Generically scans a meta-model element.void
scan(CtRole role, Object o)
Generically scans an object that can be an element, a reference, or a collection of those.void
scan(CtRole role, Collection<? extends CtElement> elements)
Generically scans a collection of meta-model elements.void
scan(CtRole role, Map<String,? extends CtElement> elements)
Generically scans a Map of meta-model elements.void
scan(CtRole role, CtElement element)
Generically scans a meta-model element.<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
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
visitCtCodeSnippetStatement(CtCodeSnippetStatement statement)
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
visitCtConstructor(CtConstructor<T> c)
Visits a constructor declaration.<T> void
visitCtConstructorCall(CtConstructorCall<T> ctConstructorCall)
Visits a call to a constructor.void
visitCtContinue(CtContinue continueStatement)
Visits acontinue
statement.void
visitCtDo(CtDo doLoop)
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
visitCtIf(CtIf ifElement)
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
visitCtRecord(CtRecord recordType)
Visits a record.void
visitCtRecordComponent(CtRecordComponent recordType)
Visits a record component.<R> void
visitCtReturn(CtReturn<R> returnStatement)
Visits areturn
statement.<R> void
visitCtStatementList(CtStatementList statements)
Visits a statement list.<T> void
visitCtSuperAccess(CtSuperAccess<T> f)
Visits an access to a super invocation.<S> void
visitCtSwitch(CtSwitch<S> switchStatement)
Visits aswitch
statement.<T,S>
voidvisitCtSwitchExpression(CtSwitchExpression<T,S> switchExpression)
Visits aswitch
expression.void
visitCtSynchronized(CtSynchronized synchro)
Visits asynchronized
modifier.void
visitCtTextBlock(CtTextBlock literal)
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
visitCtTypeParameterReference(CtTypeParameterReference ref)
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
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.
-
-
-
Method Detail
-
enter
protected void enter(CtElement e)
This method is upcalled by the scanner when entering a scanned element. To be overridden to implement specific scanners.
-
exit
protected void exit(CtElement e)
This method is upcalled by the scanner when exiting a scanned element. To be overridden to implement specific scanners.
-
scan
public void scan(CtRole role, Collection<? extends CtElement> elements)
Generically scans a collection of meta-model elements.- Parameters:
role
- Role of the collection in the parent elementelements
- A collection of elements to scan (generally sibling elements)
-
scan
public void scan(CtRole role, Map<String,? extends CtElement> elements)
Generically scans a Map of meta-model elements.- Parameters:
role
- Role of the map in the parent elementelements
- A map of elements to scan (generally sibling elements)
-
scan
public void scan(Collection<? extends CtElement> elements)
Generically scans a collection of meta-model elements.- Parameters:
elements
- A collection of elements
-
scan
public void scan(CtRole role, CtElement element)
Generically scans a meta-model element.- Parameters:
role
- Role of the element in its parentelement
- An element to scan
-
scan
public void scan(CtElement element)
Generically scans a meta-model element.- Parameters:
element
- An element to scan
-
visitCtAnnotation
public <A extends Annotation> void visitCtAnnotation(CtAnnotation<A> annotation)
Description copied from interface:CtVisitor
Visits an annotation.- Specified by:
visitCtAnnotation
in interfaceCtVisitor
-
scan
public void scan(Object o)
Generically scans an object that can be an element, a reference, or a collection of those.- Parameters:
o
- ACtElement
, or aMap
orCollection
of elements
-
scan
public void scan(CtRole role, Object o)
Generically scans an object that can be an element, a reference, or a collection of those.- Parameters:
role
- Role of the object in its parento
- ACtElement
, or aMap
orCollection
of elements
-
visitCtAnnotationType
public <A extends Annotation> void visitCtAnnotationType(CtAnnotationType<A> annotationType)
Description copied from interface:CtVisitor
Visits an annotation type declaration.- Specified by:
visitCtAnnotationType
in interfaceCtVisitor
-
visitCtAnonymousExecutable
public void visitCtAnonymousExecutable(CtAnonymousExecutable anonymousExec)
Description copied from interface:CtVisitor
Visits an anonymous executable.- Specified by:
visitCtAnonymousExecutable
in interfaceCtVisitor
-
visitCtArrayRead
public <T> void visitCtArrayRead(CtArrayRead<T> arrayRead)
Description copied from interface:CtVisitor
Visits an array read access.- Specified by:
visitCtArrayRead
in interfaceCtVisitor
-
visitCtArrayWrite
public <T> void visitCtArrayWrite(CtArrayWrite<T> arrayWrite)
Description copied from interface:CtVisitor
Visits an array write access.- Specified by:
visitCtArrayWrite
in interfaceCtVisitor
-
visitCtArrayTypeReference
public <T> void visitCtArrayTypeReference(CtArrayTypeReference<T> reference)
Description copied from interface:CtVisitor
Visits a reference to an array type.- Specified by:
visitCtArrayTypeReference
in interfaceCtVisitor
-
visitCtAssert
public <T> void visitCtAssert(CtAssert<T> asserted)
Description copied from interface:CtVisitor
Visits an assert.- Specified by:
visitCtAssert
in interfaceCtVisitor
-
visitCtAssignment
public <T,A extends T> void visitCtAssignment(CtAssignment<T,A> assignement)
Description copied from interface:CtVisitor
Visits an assignment.- Specified by:
visitCtAssignment
in interfaceCtVisitor
-
visitCtBinaryOperator
public <T> void visitCtBinaryOperator(CtBinaryOperator<T> operator)
Description copied from interface:CtVisitor
Visits a binary operator.- Specified by:
visitCtBinaryOperator
in interfaceCtVisitor
-
visitCtBlock
public <R> void visitCtBlock(CtBlock<R> block)
Description copied from interface:CtVisitor
Visits a block of code.- Specified by:
visitCtBlock
in interfaceCtVisitor
-
visitCtBreak
public void visitCtBreak(CtBreak breakStatement)
Description copied from interface:CtVisitor
Visits abreak
statement.- Specified by:
visitCtBreak
in interfaceCtVisitor
-
visitCtCase
public <S> void visitCtCase(CtCase<S> caseStatement)
Description copied from interface:CtVisitor
Visits acase
clause.- Specified by:
visitCtCase
in interfaceCtVisitor
-
visitCtCatch
public void visitCtCatch(CtCatch catchBlock)
Description copied from interface:CtVisitor
Visits acatch
clause.- Specified by:
visitCtCatch
in interfaceCtVisitor
-
visitCtClass
public <T> void visitCtClass(CtClass<T> ctClass)
Description copied from interface:CtVisitor
Visits a class declaration.- Specified by:
visitCtClass
in interfaceCtVisitor
-
visitCtTypeParameter
public void visitCtTypeParameter(CtTypeParameter typeParameter)
Description copied from interface:CtVisitor
Visits a type parameter declaration.- Specified by:
visitCtTypeParameter
in interfaceCtVisitor
-
visitCtConditional
public <T> void visitCtConditional(CtConditional<T> conditional)
Description copied from interface:CtVisitor
Visits a conditional expression- Specified by:
visitCtConditional
in interfaceCtVisitor
-
visitCtConstructor
public <T> void visitCtConstructor(CtConstructor<T> c)
Description copied from interface:CtVisitor
Visits a constructor declaration.- Specified by:
visitCtConstructor
in interfaceCtVisitor
-
visitCtContinue
public void visitCtContinue(CtContinue continueStatement)
Description copied from interface:CtVisitor
Visits acontinue
statement.- Specified by:
visitCtContinue
in interfaceCtVisitor
-
visitCtDo
public void visitCtDo(CtDo doLoop)
Description copied from interface:CtVisitor
Visits ado
loop.
-
visitCtEnum
public <T extends Enum<?>> void visitCtEnum(CtEnum<T> ctEnum)
Description copied from interface:CtVisitor
Visits an enumeration declaration.- Specified by:
visitCtEnum
in interfaceCtVisitor
-
visitCtExecutableReference
public <T> void visitCtExecutableReference(CtExecutableReference<T> reference)
Description copied from interface:CtVisitor
Visits a reference to an executable.- Specified by:
visitCtExecutableReference
in interfaceCtVisitor
-
visitCtField
public <T> void visitCtField(CtField<T> f)
Description copied from interface:CtVisitor
Visits a field declaration.- Specified by:
visitCtField
in interfaceCtVisitor
-
visitCtEnumValue
public <T> void visitCtEnumValue(CtEnumValue<T> enumValue)
Description copied from interface:CtVisitor
Visits an enum value declaration.- Specified by:
visitCtEnumValue
in interfaceCtVisitor
-
visitCtThisAccess
public <T> void visitCtThisAccess(CtThisAccess<T> thisAccess)
Description copied from interface:CtVisitor
Visits a this access.- Specified by:
visitCtThisAccess
in interfaceCtVisitor
-
visitCtAnnotationFieldAccess
public <T> void visitCtAnnotationFieldAccess(CtAnnotationFieldAccess<T> annotationFieldAccess)
Description copied from interface:CtVisitor
Visits a field of an annotation.- Specified by:
visitCtAnnotationFieldAccess
in interfaceCtVisitor
-
visitCtFieldReference
public <T> void visitCtFieldReference(CtFieldReference<T> reference)
Description copied from interface:CtVisitor
Visits a reference to a field.- Specified by:
visitCtFieldReference
in interfaceCtVisitor
-
visitCtFor
public void visitCtFor(CtFor forLoop)
Description copied from interface:CtVisitor
Visits afor
loop.- Specified by:
visitCtFor
in interfaceCtVisitor
-
visitCtForEach
public void visitCtForEach(CtForEach foreach)
Description copied from interface:CtVisitor
Visits an enhancedfor
loop.- Specified by:
visitCtForEach
in interfaceCtVisitor
-
visitCtIf
public void visitCtIf(CtIf ifElement)
Description copied from interface:CtVisitor
Visits anif
statement.
-
visitCtInterface
public <T> void visitCtInterface(CtInterface<T> intrface)
Description copied from interface:CtVisitor
Visits an interface declaration.- Specified by:
visitCtInterface
in interfaceCtVisitor
-
visitCtInvocation
public <T> void visitCtInvocation(CtInvocation<T> invocation)
Description copied from interface:CtVisitor
Visits an executable invocation.- Specified by:
visitCtInvocation
in interfaceCtVisitor
-
visitCtLiteral
public <T> void visitCtLiteral(CtLiteral<T> literal)
Description copied from interface:CtVisitor
Visits a literal expression.- Specified by:
visitCtLiteral
in interfaceCtVisitor
-
visitCtTextBlock
public void visitCtTextBlock(CtTextBlock literal)
Description copied from interface:CtVisitor
Visits a literal TextBlock string.- Specified by:
visitCtTextBlock
in interfaceCtVisitor
-
visitCtLocalVariable
public <T> void visitCtLocalVariable(CtLocalVariable<T> localVariable)
Description copied from interface:CtVisitor
Visits a local variable declaration.- Specified by:
visitCtLocalVariable
in interfaceCtVisitor
-
visitCtLocalVariableReference
public <T> void visitCtLocalVariableReference(CtLocalVariableReference<T> reference)
Description copied from interface:CtVisitor
Visits a reference to a local variable.- Specified by:
visitCtLocalVariableReference
in interfaceCtVisitor
-
visitCtCatchVariable
public <T> void visitCtCatchVariable(CtCatchVariable<T> catchVariable)
Description copied from interface:CtVisitor
Visits a catch variable declaration.- Specified by:
visitCtCatchVariable
in interfaceCtVisitor
-
visitCtCatchVariableReference
public <T> void visitCtCatchVariableReference(CtCatchVariableReference<T> reference)
Description copied from interface:CtVisitor
Visits a reference to a catch variable.- Specified by:
visitCtCatchVariableReference
in interfaceCtVisitor
-
visitCtMethod
public <T> void visitCtMethod(CtMethod<T> m)
Description copied from interface:CtVisitor
Visits a method declaration.- Specified by:
visitCtMethod
in interfaceCtVisitor
-
visitCtAnnotationMethod
public <T> void visitCtAnnotationMethod(CtAnnotationMethod<T> annotationMethod)
Description copied from interface:CtVisitor
Visits an annotation method declaration.- Specified by:
visitCtAnnotationMethod
in interfaceCtVisitor
-
visitCtNewArray
public <T> void visitCtNewArray(CtNewArray<T> newArray)
Description copied from interface:CtVisitor
Visits an array construction.- Specified by:
visitCtNewArray
in interfaceCtVisitor
-
visitCtConstructorCall
public <T> void visitCtConstructorCall(CtConstructorCall<T> ctConstructorCall)
Description copied from interface:CtVisitor
Visits a call to a constructor.- Specified by:
visitCtConstructorCall
in interfaceCtVisitor
-
visitCtNewClass
public <T> void visitCtNewClass(CtNewClass<T> newClass)
Description copied from interface:CtVisitor
Visits an anonymous class construction.- Specified by:
visitCtNewClass
in interfaceCtVisitor
-
visitCtLambda
public <T> void visitCtLambda(CtLambda<T> lambda)
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
public <T,A extends T> void visitCtOperatorAssignment(CtOperatorAssignment<T,A> assignment)
Description copied from interface:CtVisitor
Visits an operator assignment.- Specified by:
visitCtOperatorAssignment
in interfaceCtVisitor
-
visitCtPackage
public void visitCtPackage(CtPackage ctPackage)
Description copied from interface:CtVisitor
Visits a package declaration.- Specified by:
visitCtPackage
in interfaceCtVisitor
-
visitCtPackageReference
public void visitCtPackageReference(CtPackageReference reference)
Description copied from interface:CtVisitor
Visits a reference to a package.- Specified by:
visitCtPackageReference
in interfaceCtVisitor
-
visitCtParameter
public <T> void visitCtParameter(CtParameter<T> parameter)
Description copied from interface:CtVisitor
Visits a parameter declaration.- Specified by:
visitCtParameter
in interfaceCtVisitor
-
visitCtParameterReference
public <T> void visitCtParameterReference(CtParameterReference<T> reference)
Description copied from interface:CtVisitor
Visits a reference to a parameter.- Specified by:
visitCtParameterReference
in interfaceCtVisitor
-
visitCtReturn
public <R> void visitCtReturn(CtReturn<R> returnStatement)
Description copied from interface:CtVisitor
Visits areturn
statement.- Specified by:
visitCtReturn
in interfaceCtVisitor
-
visitCtStatementList
public <R> void visitCtStatementList(CtStatementList statements)
Description copied from interface:CtVisitor
Visits a statement list.- Specified by:
visitCtStatementList
in interfaceCtVisitor
-
visitCtSwitch
public <S> void visitCtSwitch(CtSwitch<S> switchStatement)
Description copied from interface:CtVisitor
Visits aswitch
statement.- Specified by:
visitCtSwitch
in interfaceCtVisitor
-
visitCtSwitchExpression
public <T,S> void visitCtSwitchExpression(CtSwitchExpression<T,S> switchExpression)
Description copied from interface:CtVisitor
Visits aswitch
expression.- Specified by:
visitCtSwitchExpression
in interfaceCtVisitor
-
visitCtSynchronized
public void visitCtSynchronized(CtSynchronized synchro)
Description copied from interface:CtVisitor
Visits asynchronized
modifier.- Specified by:
visitCtSynchronized
in interfaceCtVisitor
-
visitCtThrow
public void visitCtThrow(CtThrow throwStatement)
Description copied from interface:CtVisitor
Visits athrow
statement.- Specified by:
visitCtThrow
in interfaceCtVisitor
-
visitCtTry
public void visitCtTry(CtTry tryBlock)
Description copied from interface:CtVisitor
Visits atry
statement.- Specified by:
visitCtTry
in interfaceCtVisitor
-
visitCtTryWithResource
public void visitCtTryWithResource(CtTryWithResource tryWithResource)
Description copied from interface:CtVisitor
Visits atry
with resource statement.- Specified by:
visitCtTryWithResource
in interfaceCtVisitor
-
visitCtTypeParameterReference
public void visitCtTypeParameterReference(CtTypeParameterReference ref)
Description copied from interface:CtVisitor
Visits a reference to a type parameter.- Specified by:
visitCtTypeParameterReference
in interfaceCtVisitor
-
visitCtWildcardReference
public void visitCtWildcardReference(CtWildcardReference wildcardReference)
Description copied from interface:CtVisitor
Visits a reference to a wildcard.- Specified by:
visitCtWildcardReference
in interfaceCtVisitor
-
visitCtIntersectionTypeReference
public <T> void visitCtIntersectionTypeReference(CtIntersectionTypeReference<T> reference)
Description copied from interface:CtVisitor
Visits an intersection type.- Specified by:
visitCtIntersectionTypeReference
in interfaceCtVisitor
-
visitCtTypeReference
public <T> void visitCtTypeReference(CtTypeReference<T> reference)
Description copied from interface:CtVisitor
Visits a reference to a type.- Specified by:
visitCtTypeReference
in interfaceCtVisitor
-
visitCtTypeAccess
public <T> void visitCtTypeAccess(CtTypeAccess<T> typeAccess)
Description copied from interface:CtVisitor
Visits a type access.- Specified by:
visitCtTypeAccess
in interfaceCtVisitor
-
visitCtUnaryOperator
public <T> void visitCtUnaryOperator(CtUnaryOperator<T> operator)
Description copied from interface:CtVisitor
Visits a unary operator.- Specified by:
visitCtUnaryOperator
in interfaceCtVisitor
-
visitCtVariableRead
public <T> void visitCtVariableRead(CtVariableRead<T> variableRead)
Description copied from interface:CtVisitor
Visits a variable read access.- Specified by:
visitCtVariableRead
in interfaceCtVisitor
-
visitCtVariableWrite
public <T> void visitCtVariableWrite(CtVariableWrite<T> variableWrite)
Description copied from interface:CtVisitor
Visits a variable write access.- Specified by:
visitCtVariableWrite
in interfaceCtVisitor
-
visitCtWhile
public void visitCtWhile(CtWhile whileLoop)
Description copied from interface:CtVisitor
Visits awhile
loop.- Specified by:
visitCtWhile
in interfaceCtVisitor
-
visitCtCodeSnippetExpression
public <T> void visitCtCodeSnippetExpression(CtCodeSnippetExpression<T> expression)
Description copied from interface:CtVisitor
Visits a code snippet expression.- Specified by:
visitCtCodeSnippetExpression
in interfaceCtVisitor
-
visitCtCodeSnippetStatement
public void visitCtCodeSnippetStatement(CtCodeSnippetStatement statement)
Description copied from interface:CtVisitor
Visits a code snippet statement.- Specified by:
visitCtCodeSnippetStatement
in interfaceCtVisitor
-
visitCtUnboundVariableReference
public <T> void visitCtUnboundVariableReference(CtUnboundVariableReference<T> reference)
Description copied from interface:CtVisitor
Visits a reference to an unbound field- Specified by:
visitCtUnboundVariableReference
in interfaceCtVisitor
-
visitCtFieldRead
public <T> void visitCtFieldRead(CtFieldRead<T> fieldRead)
Description copied from interface:CtVisitor
Visits a field read access.- Specified by:
visitCtFieldRead
in interfaceCtVisitor
-
visitCtFieldWrite
public <T> void visitCtFieldWrite(CtFieldWrite<T> fieldWrite)
Description copied from interface:CtVisitor
Visits a field write access.- Specified by:
visitCtFieldWrite
in interfaceCtVisitor
-
visitCtSuperAccess
public <T> void visitCtSuperAccess(CtSuperAccess<T> f)
Description copied from interface:CtVisitor
Visits an access to a super invocation.- Specified by:
visitCtSuperAccess
in interfaceCtVisitor
-
visitCtComment
public void visitCtComment(CtComment comment)
Description copied from interface:CtVisitor
Visits a comment- Specified by:
visitCtComment
in interfaceCtVisitor
-
visitCtJavaDoc
public void visitCtJavaDoc(CtJavaDoc javaDoc)
Description copied from interface:CtVisitor
Visits a javadoc comment- Specified by:
visitCtJavaDoc
in interfaceCtVisitor
-
visitCtJavaDocTag
public void visitCtJavaDocTag(CtJavaDocTag docTag)
Description copied from interface:CtVisitor
Visits a javadoc tag- Specified by:
visitCtJavaDocTag
in interfaceCtVisitor
-
visitCtImport
public void visitCtImport(CtImport ctImport)
Description copied from interface:CtVisitor
Visits an import declaration- Specified by:
visitCtImport
in interfaceCtVisitor
-
visitCtModule
public void visitCtModule(CtModule module)
Description copied from interface:CtVisitor
Visits a module declaration- Specified by:
visitCtModule
in interfaceCtVisitor
-
visitCtModuleReference
public void visitCtModuleReference(CtModuleReference moduleReference)
Description copied from interface:CtVisitor
Visits a module reference- Specified by:
visitCtModuleReference
in interfaceCtVisitor
-
visitCtPackageExport
public void visitCtPackageExport(CtPackageExport moduleExport)
Description copied from interface:CtVisitor
Visits a package export in a module declaration.- Specified by:
visitCtPackageExport
in interfaceCtVisitor
-
visitCtModuleRequirement
public void visitCtModuleRequirement(CtModuleRequirement moduleRequirement)
Description copied from interface:CtVisitor
Visits a "require" directive in a module declaration.- Specified by:
visitCtModuleRequirement
in interfaceCtVisitor
-
visitCtProvidedService
public void visitCtProvidedService(CtProvidedService moduleProvidedService)
Description copied from interface:CtVisitor
Visits a "provides" directive in a module declaration.- Specified by:
visitCtProvidedService
in interfaceCtVisitor
-
visitCtUsedService
public void visitCtUsedService(CtUsedService usedService)
Description copied from interface:CtVisitor
Visits a "uses" directive in a module declaration.- Specified by:
visitCtUsedService
in interfaceCtVisitor
-
visitCtCompilationUnit
public void visitCtCompilationUnit(CtCompilationUnit compilationUnit)
Description copied from interface:CtVisitor
Visits a compilation unit- Specified by:
visitCtCompilationUnit
in interfaceCtVisitor
-
visitCtPackageDeclaration
public void visitCtPackageDeclaration(CtPackageDeclaration packageDeclaration)
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
public void visitCtYieldStatement(CtYieldStatement statement)
Description copied from interface:CtVisitor
Visits a yield statement.- Specified by:
visitCtYieldStatement
in interfaceCtVisitor
-
visitCtTypePattern
public void visitCtTypePattern(CtTypePattern pattern)
Description copied from interface:CtVisitor
Visits a pattern.- Specified by:
visitCtTypePattern
in interfaceCtVisitor
- Parameters:
pattern
- the pattern to visit.
-
visitCtRecord
public void visitCtRecord(CtRecord recordType)
Description copied from interface:CtVisitor
Visits a record.- Specified by:
visitCtRecord
in interfaceCtVisitor
- Parameters:
recordType
- the record to visit.
-
visitCtRecordComponent
public void visitCtRecordComponent(CtRecordComponent recordType)
Description copied from interface:CtVisitor
Visits a record component.- Specified by:
visitCtRecordComponent
in interfaceCtVisitor
- Parameters:
recordType
- the record component to visit.
-
-