Package spoon.support.compiler.jdt
Class ParentExiter
java.lang.Object
spoon.reflect.visitor.CtInheritanceScanner
spoon.support.compiler.jdt.ParentExiter
- All Implemented Interfaces:
CtVisitor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
exitParent(ASTPair pair)
void
Scans an abstract element.<R> void
scanCtExecutable(CtExecutable<R> e)
Scans an abstract executable.void
Scans a formal type declarer.void
scanCtLoop(CtLoop loop)
Scans an abstract loop.<T, E extends CtExpression<?>>
voidscanCtTargetedExpression(CtTargetedExpression<T,E> targetedExpression)
Scans an abstract targeted expression.<T> void
scanCtType(CtType<T> type)
Scans an abstract type.<T> void
scanCtVariable(CtVariable<T> v)
Scans an abstract variable declaration.void
setChild(org.eclipse.jdt.internal.compiler.ast.ASTNode child)
void
<A extends Annotation>
voidvisitCtAnnotation(CtAnnotation<A> annotation)
Visits an annotation.<T> void
visitCtAnnotationMethod(CtAnnotationMethod<T> annotationMethod)
Visits an annotation method declaration.void
Visits an anonymous executable.<T> void
visitCtArrayRead(CtArrayRead<T> arrayRead)
Visits an array read access.<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 b)
Visits abreak
statement.<E> void
visitCtCase(CtCase<E> caseStatement)
Visits acase
clause.void
visitCtCatch(CtCatch catchBlock)
Visits acatch
clause.<T> void
Visits a catch variable declaration.<T> void
visitCtClass(CtClass<T> ctClass)
Visits a class declaration.<T> void
visitCtConditional(CtConditional<T> conditional)
Visits a conditional expression<T> void
visitCtConstructor(CtConstructor<T> e)
Visits a constructor declaration.<T> void
visitCtConstructorCall(CtConstructorCall<T> ctConstructorCall)
Visits a call to a constructor.void
Visits ado
loop.<T, E extends CtExpression<?>>
voidvisitCtExecutableReferenceExpression(CtExecutableReferenceExpression<T,E> expression)
Visits a reference to an executable.void
visitCtFor(CtFor forLoop)
Visits afor
loop.void
visitCtForEach(CtForEach foreach)
Visits an enhancedfor
loop.void
Visits anif
statement.<T> void
visitCtInvocation(CtInvocation<T> invocation)
Visits an executable invocation.<T> void
visitCtLambda(CtLambda<T> lambda)
Visits an anonymous method construction.<T> void
visitCtMethod(CtMethod<T> e)
Visits a method declaration.<T> void
visitCtNewArray(CtNewArray<T> newArray)
Visits an array construction.<T> void
visitCtNewClass(CtNewClass<T> newClass)
Visits an anonymous class construction.void
visitCtPackage(CtPackage ctPackage)
Visits a package declaration.void
visitCtRecord(CtRecord recordType)
Visits a record.void
visitCtRecordComponent(CtRecordComponent recordComponent)
Visits a record component.<R> void
visitCtReturn(CtReturn<R> returnStatement)
Visits areturn
statement.<T> void
visitCtSuperAccess(CtSuperAccess<T> superAccess)
Visits an access to a super invocation.<E> void
visitCtSwitch(CtSwitch<E> switchStatement)
Visits aswitch
statement.<T, S> void
visitCtSwitchExpression(CtSwitchExpression<T,S> switchExpression)
Visits aswitch
expression.void
visitCtSynchronized(CtSynchronized synchro)
Visits asynchronized
modifier.void
visitCtThrow(CtThrow throwStatement)
Visits athrow
statement.void
visitCtTry(CtTry tryBlock)
Visits atry
statement.void
visitCtTryWithResource(CtTryWithResource tryWithResource)
Visits atry
with resource statement.void
visitCtTypeParameter(CtTypeParameter typeParameter)
Visits a type parameter declaration.void
visitCtTypePattern(CtTypePattern pattern)
Visits a pattern.<T> void
visitCtUnaryOperator(CtUnaryOperator<T> operator)
Visits a unary operator.void
visitCtWhile(CtWhile whileLoop)
Visits awhile
loop.void
Visits a reference to a wildcard.void
Visits a yield statement.Methods inherited from class spoon.reflect.visitor.CtInheritanceScanner
scan, scan, scanCtAbstractInvocation, scanCtAbstractSwitch, scanCtActualTypeContainer, scanCtArrayAccess, scanCtBodyHolder, scanCtCFlowBreak, scanCtCodeElement, scanCtCodeSnippet, scanCtExpression, scanCtFieldAccess, scanCtLabelledFlowBreak, scanCtModifiable, scanCtModuleDirective, scanCtMultiTypedElement, scanCtNamedElement, scanCtPattern, scanCtReference, scanCtResource, scanCtRHSReceiver, scanCtSealable, scanCtShadowable, scanCtStatement, scanCtTypedElement, scanCtTypeInformation, scanCtTypeMember, scanCtVariableAccess, scanCtVariableReference, scanCtVisitable, visitCtAnnotationFieldAccess, visitCtAnnotationType, visitCtArrayTypeReference, visitCtCatchVariableReference, visitCtCodeSnippetExpression, visitCtCodeSnippetStatement, visitCtComment, visitCtCompilationUnit, visitCtContinue, visitCtEnum, visitCtEnumValue, visitCtExecutableReference, visitCtField, visitCtFieldRead, visitCtFieldReference, visitCtFieldWrite, visitCtImport, visitCtInterface, visitCtIntersectionTypeReference, visitCtJavaDoc, visitCtJavaDocTag, visitCtLiteral, visitCtLocalVariable, visitCtLocalVariableReference, visitCtModule, visitCtModuleReference, visitCtModuleRequirement, visitCtOperatorAssignement, visitCtOperatorAssignment, visitCtPackageDeclaration, visitCtPackageExport, visitCtPackageReference, visitCtParameter, visitCtParameterReference, visitCtProvidedService, visitCtStatementList, visitCtTextBlock, visitCtThisAccess, visitCtTypeAccess, visitCtTypeMemberWildcardImportReference, visitCtTypeParameterReference, visitCtTypeReference, visitCtUnboundVariableReference, visitCtUsedService, visitCtVariableRead, visitCtVariableWrite
-
Method Details
-
exitParent
-
setChild
-
setChild
public void setChild(org.eclipse.jdt.internal.compiler.ast.ASTNode child) -
scanCtElement
Description copied from class:CtInheritanceScanner
Scans an abstract element.- Overrides:
scanCtElement
in classCtInheritanceScanner
-
scanCtExecutable
Description copied from class:CtInheritanceScanner
Scans an abstract executable.- Overrides:
scanCtExecutable
in classCtInheritanceScanner
-
scanCtFormalTypeDeclarer
Description copied from class:CtInheritanceScanner
Scans a formal type declarer.- Overrides:
scanCtFormalTypeDeclarer
in classCtInheritanceScanner
-
scanCtLoop
Description copied from class:CtInheritanceScanner
Scans an abstract loop.- Overrides:
scanCtLoop
in classCtInheritanceScanner
-
scanCtTargetedExpression
public <T, E extends CtExpression<?>> void scanCtTargetedExpression(CtTargetedExpression<T,E> targetedExpression)Description copied from class:CtInheritanceScanner
Scans an abstract targeted expression.- Overrides:
scanCtTargetedExpression
in classCtInheritanceScanner
-
scanCtType
Description copied from class:CtInheritanceScanner
Scans an abstract type.- Overrides:
scanCtType
in classCtInheritanceScanner
-
scanCtVariable
Description copied from class:CtInheritanceScanner
Scans an abstract variable declaration.- Overrides:
scanCtVariable
in classCtInheritanceScanner
-
visitCtAnnotation
Description copied from interface:CtVisitor
Visits an annotation.- Specified by:
visitCtAnnotation
in interfaceCtVisitor
- Overrides:
visitCtAnnotation
in classCtInheritanceScanner
-
visitCtConstructor
Description copied from interface:CtVisitor
Visits a constructor declaration.- Specified by:
visitCtConstructor
in interfaceCtVisitor
- Overrides:
visitCtConstructor
in classCtInheritanceScanner
-
visitCtMethod
Description copied from interface:CtVisitor
Visits a method declaration.- Specified by:
visitCtMethod
in interfaceCtVisitor
- Overrides:
visitCtMethod
in classCtInheritanceScanner
-
visitCtAnnotationMethod
Description copied from interface:CtVisitor
Visits an annotation method declaration.- Specified by:
visitCtAnnotationMethod
in interfaceCtVisitor
- Overrides:
visitCtAnnotationMethod
in classCtInheritanceScanner
-
visitCtAnonymousExecutable
Description copied from interface:CtVisitor
Visits an anonymous executable.- Specified by:
visitCtAnonymousExecutable
in interfaceCtVisitor
- Overrides:
visitCtAnonymousExecutable
in classCtInheritanceScanner
-
visitCtArrayRead
Description copied from interface:CtVisitor
Visits an array read access.- Specified by:
visitCtArrayRead
in interfaceCtVisitor
- Overrides:
visitCtArrayRead
in classCtInheritanceScanner
-
visitCtArrayWrite
Description copied from interface:CtVisitor
Visits an array write access.- Specified by:
visitCtArrayWrite
in interfaceCtVisitor
- Overrides:
visitCtArrayWrite
in classCtInheritanceScanner
-
visitCtAssert
Description copied from interface:CtVisitor
Visits an assert.- Specified by:
visitCtAssert
in interfaceCtVisitor
- Overrides:
visitCtAssert
in classCtInheritanceScanner
-
visitCtAssignment
Description copied from interface:CtVisitor
Visits an assignment.- Specified by:
visitCtAssignment
in interfaceCtVisitor
- Overrides:
visitCtAssignment
in classCtInheritanceScanner
-
visitCtBinaryOperator
Description copied from interface:CtVisitor
Visits a binary operator.- Specified by:
visitCtBinaryOperator
in interfaceCtVisitor
- Overrides:
visitCtBinaryOperator
in classCtInheritanceScanner
-
visitCtBlock
Description copied from interface:CtVisitor
Visits a block of code.- Specified by:
visitCtBlock
in interfaceCtVisitor
- Overrides:
visitCtBlock
in classCtInheritanceScanner
-
visitCtBreak
Description copied from interface:CtVisitor
Visits abreak
statement.- Specified by:
visitCtBreak
in interfaceCtVisitor
- Overrides:
visitCtBreak
in classCtInheritanceScanner
-
visitCtCase
Description copied from interface:CtVisitor
Visits acase
clause.- Specified by:
visitCtCase
in interfaceCtVisitor
- Overrides:
visitCtCase
in classCtInheritanceScanner
-
visitCtCatch
Description copied from interface:CtVisitor
Visits acatch
clause.- Specified by:
visitCtCatch
in interfaceCtVisitor
- Overrides:
visitCtCatch
in classCtInheritanceScanner
-
visitCtCatchVariable
Description copied from interface:CtVisitor
Visits a catch variable declaration.- Specified by:
visitCtCatchVariable
in interfaceCtVisitor
- Overrides:
visitCtCatchVariable
in classCtInheritanceScanner
-
visitCtClass
Description copied from interface:CtVisitor
Visits a class declaration.- Specified by:
visitCtClass
in interfaceCtVisitor
- Overrides:
visitCtClass
in classCtInheritanceScanner
-
visitCtTypeParameter
Description copied from interface:CtVisitor
Visits a type parameter declaration.- Specified by:
visitCtTypeParameter
in interfaceCtVisitor
- Overrides:
visitCtTypeParameter
in classCtInheritanceScanner
-
visitCtConditional
Description copied from interface:CtVisitor
Visits a conditional expression- Specified by:
visitCtConditional
in interfaceCtVisitor
- Overrides:
visitCtConditional
in classCtInheritanceScanner
-
visitCtDo
Description copied from interface:CtVisitor
Visits ado
loop.- Specified by:
visitCtDo
in interfaceCtVisitor
- Overrides:
visitCtDo
in classCtInheritanceScanner
-
visitCtFor
Description copied from interface:CtVisitor
Visits afor
loop.- Specified by:
visitCtFor
in interfaceCtVisitor
- Overrides:
visitCtFor
in classCtInheritanceScanner
-
visitCtForEach
Description copied from interface:CtVisitor
Visits an enhancedfor
loop.- Specified by:
visitCtForEach
in interfaceCtVisitor
- Overrides:
visitCtForEach
in classCtInheritanceScanner
-
visitCtWhile
Description copied from interface:CtVisitor
Visits awhile
loop.- Specified by:
visitCtWhile
in interfaceCtVisitor
- Overrides:
visitCtWhile
in classCtInheritanceScanner
-
visitCtIf
Description copied from interface:CtVisitor
Visits anif
statement.- Specified by:
visitCtIf
in interfaceCtVisitor
- Overrides:
visitCtIf
in classCtInheritanceScanner
-
visitCtSuperAccess
Description copied from interface:CtVisitor
Visits an access to a super invocation.- Specified by:
visitCtSuperAccess
in interfaceCtVisitor
- Overrides:
visitCtSuperAccess
in classCtInheritanceScanner
-
visitCtInvocation
Description copied from interface:CtVisitor
Visits an executable invocation.- Specified by:
visitCtInvocation
in interfaceCtVisitor
- Overrides:
visitCtInvocation
in classCtInheritanceScanner
-
visitCtNewArray
Description copied from interface:CtVisitor
Visits an array construction.- Specified by:
visitCtNewArray
in interfaceCtVisitor
- Overrides:
visitCtNewArray
in classCtInheritanceScanner
-
visitCtConstructorCall
Description copied from interface:CtVisitor
Visits a call to a constructor.- Specified by:
visitCtConstructorCall
in interfaceCtVisitor
- Overrides:
visitCtConstructorCall
in classCtInheritanceScanner
-
visitCtNewClass
Description copied from interface:CtVisitor
Visits an anonymous class construction.- Specified by:
visitCtNewClass
in interfaceCtVisitor
- Overrides:
visitCtNewClass
in classCtInheritanceScanner
-
visitCtLambda
Description copied from interface:CtVisitor
Visits an anonymous method construction.- Specified by:
visitCtLambda
in interfaceCtVisitor
- Overrides:
visitCtLambda
in classCtInheritanceScanner
-
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
- Overrides:
visitCtExecutableReferenceExpression
in classCtInheritanceScanner
-
visitCtPackage
Description copied from interface:CtVisitor
Visits a package declaration.- Specified by:
visitCtPackage
in interfaceCtVisitor
- Overrides:
visitCtPackage
in classCtInheritanceScanner
-
visitCtReturn
Description copied from interface:CtVisitor
Visits areturn
statement.- Specified by:
visitCtReturn
in interfaceCtVisitor
- Overrides:
visitCtReturn
in classCtInheritanceScanner
-
visitCtSwitch
Description copied from interface:CtVisitor
Visits aswitch
statement.- Specified by:
visitCtSwitch
in interfaceCtVisitor
- Overrides:
visitCtSwitch
in classCtInheritanceScanner
-
visitCtSwitchExpression
Description copied from interface:CtVisitor
Visits aswitch
expression.- Specified by:
visitCtSwitchExpression
in interfaceCtVisitor
- Overrides:
visitCtSwitchExpression
in classCtInheritanceScanner
-
visitCtSynchronized
Description copied from interface:CtVisitor
Visits asynchronized
modifier.- Specified by:
visitCtSynchronized
in interfaceCtVisitor
- Overrides:
visitCtSynchronized
in classCtInheritanceScanner
-
visitCtThrow
Description copied from interface:CtVisitor
Visits athrow
statement.- Specified by:
visitCtThrow
in interfaceCtVisitor
- Overrides:
visitCtThrow
in classCtInheritanceScanner
-
visitCtTry
Description copied from interface:CtVisitor
Visits atry
statement.- Specified by:
visitCtTry
in interfaceCtVisitor
- Overrides:
visitCtTry
in classCtInheritanceScanner
-
visitCtTryWithResource
Description copied from interface:CtVisitor
Visits atry
with resource statement.- Specified by:
visitCtTryWithResource
in interfaceCtVisitor
- Overrides:
visitCtTryWithResource
in classCtInheritanceScanner
-
visitCtUnaryOperator
Description copied from interface:CtVisitor
Visits a unary operator.- Specified by:
visitCtUnaryOperator
in interfaceCtVisitor
- Overrides:
visitCtUnaryOperator
in classCtInheritanceScanner
-
visitCtWildcardReference
Description copied from interface:CtVisitor
Visits a reference to a wildcard.- Specified by:
visitCtWildcardReference
in interfaceCtVisitor
- Overrides:
visitCtWildcardReference
in classCtInheritanceScanner
-
visitCtYieldStatement
Description copied from interface:CtVisitor
Visits a yield statement.- Specified by:
visitCtYieldStatement
in interfaceCtVisitor
- Overrides:
visitCtYieldStatement
in classCtInheritanceScanner
-
visitCtTypePattern
Description copied from interface:CtVisitor
Visits a pattern.- Specified by:
visitCtTypePattern
in interfaceCtVisitor
- Overrides:
visitCtTypePattern
in classCtInheritanceScanner
- Parameters:
pattern
- the pattern to visit.
-
visitCtRecord
Description copied from interface:CtVisitor
Visits a record.- Specified by:
visitCtRecord
in interfaceCtVisitor
- Overrides:
visitCtRecord
in classCtInheritanceScanner
- Parameters:
recordType
- the record to visit.
-
visitCtRecordComponent
Description copied from interface:CtVisitor
Visits a record component.- Specified by:
visitCtRecordComponent
in interfaceCtVisitor
- Overrides:
visitCtRecordComponent
in classCtInheritanceScanner
- Parameters:
recordComponent
- the record component to visit.
-