Package spoon.support.compiler.jdt
Class ParentExiter
- java.lang.Object
-
- spoon.reflect.visitor.CtInheritanceScanner
-
- spoon.support.compiler.jdt.ParentExiter
-
- All Implemented Interfaces:
CtVisitor
public class ParentExiter extends CtInheritanceScanner
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exitParent(ASTPair pair)
void
scanCtElement(CtElement e)
Scans an abstract element.<R> void
scanCtExecutable(CtExecutable<R> e)
Scans an abstract executable.void
scanCtFormalTypeDeclarer(CtFormalTypeDeclarer e)
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
setChild(CtElement child)
<A extends Annotation>
voidvisitCtAnnotation(CtAnnotation<A> annotation)
Visits an annotation.<T> void
visitCtAnnotationMethod(CtAnnotationMethod<T> annotationMethod)
Visits an annotation method declaration.void
visitCtAnonymousExecutable(CtAnonymousExecutable e)
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
visitCtCatchVariable(CtCatchVariable<T> e)
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
visitCtDo(CtDo doLoop)
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
visitCtIf(CtIf ifElement)
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>
voidvisitCtSwitchExpression(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
visitCtWildcardReference(CtWildcardReference e)
Visits a reference to a wildcard.void
visitCtYieldStatement(CtYieldStatement e)
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, 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 Detail
-
exitParent
public void exitParent(ASTPair pair)
-
setChild
public void setChild(CtElement child)
-
setChild
public void setChild(org.eclipse.jdt.internal.compiler.ast.ASTNode child)
-
scanCtElement
public void scanCtElement(CtElement e)
Description copied from class:CtInheritanceScanner
Scans an abstract element.- Overrides:
scanCtElement
in classCtInheritanceScanner
-
scanCtExecutable
public <R> void scanCtExecutable(CtExecutable<R> e)
Description copied from class:CtInheritanceScanner
Scans an abstract executable.- Overrides:
scanCtExecutable
in classCtInheritanceScanner
-
scanCtFormalTypeDeclarer
public void scanCtFormalTypeDeclarer(CtFormalTypeDeclarer e)
Description copied from class:CtInheritanceScanner
Scans a formal type declarer.- Overrides:
scanCtFormalTypeDeclarer
in classCtInheritanceScanner
-
scanCtLoop
public void scanCtLoop(CtLoop loop)
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
public <T> void scanCtType(CtType<T> type)
Description copied from class:CtInheritanceScanner
Scans an abstract type.- Overrides:
scanCtType
in classCtInheritanceScanner
-
scanCtVariable
public <T> void scanCtVariable(CtVariable<T> v)
Description copied from class:CtInheritanceScanner
Scans an abstract variable declaration.- Overrides:
scanCtVariable
in classCtInheritanceScanner
-
visitCtAnnotation
public <A extends Annotation> void visitCtAnnotation(CtAnnotation<A> annotation)
Description copied from interface:CtVisitor
Visits an annotation.- Specified by:
visitCtAnnotation
in interfaceCtVisitor
- Overrides:
visitCtAnnotation
in classCtInheritanceScanner
-
visitCtConstructor
public <T> void visitCtConstructor(CtConstructor<T> e)
Description copied from interface:CtVisitor
Visits a constructor declaration.- Specified by:
visitCtConstructor
in interfaceCtVisitor
- Overrides:
visitCtConstructor
in classCtInheritanceScanner
-
visitCtMethod
public <T> void visitCtMethod(CtMethod<T> e)
Description copied from interface:CtVisitor
Visits a method declaration.- Specified by:
visitCtMethod
in interfaceCtVisitor
- Overrides:
visitCtMethod
in classCtInheritanceScanner
-
visitCtAnnotationMethod
public <T> void visitCtAnnotationMethod(CtAnnotationMethod<T> annotationMethod)
Description copied from interface:CtVisitor
Visits an annotation method declaration.- Specified by:
visitCtAnnotationMethod
in interfaceCtVisitor
- Overrides:
visitCtAnnotationMethod
in classCtInheritanceScanner
-
visitCtAnonymousExecutable
public void visitCtAnonymousExecutable(CtAnonymousExecutable e)
Description copied from interface:CtVisitor
Visits an anonymous executable.- Specified by:
visitCtAnonymousExecutable
in interfaceCtVisitor
- Overrides:
visitCtAnonymousExecutable
in classCtInheritanceScanner
-
visitCtArrayRead
public <T> void visitCtArrayRead(CtArrayRead<T> arrayRead)
Description copied from interface:CtVisitor
Visits an array read access.- Specified by:
visitCtArrayRead
in interfaceCtVisitor
- Overrides:
visitCtArrayRead
in classCtInheritanceScanner
-
visitCtArrayWrite
public <T> void visitCtArrayWrite(CtArrayWrite<T> arrayWrite)
Description copied from interface:CtVisitor
Visits an array write access.- Specified by:
visitCtArrayWrite
in interfaceCtVisitor
- Overrides:
visitCtArrayWrite
in classCtInheritanceScanner
-
visitCtAssert
public <T> void visitCtAssert(CtAssert<T> asserted)
Description copied from interface:CtVisitor
Visits an assert.- Specified by:
visitCtAssert
in interfaceCtVisitor
- Overrides:
visitCtAssert
in classCtInheritanceScanner
-
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
- Overrides:
visitCtAssignment
in classCtInheritanceScanner
-
visitCtBinaryOperator
public <T> void visitCtBinaryOperator(CtBinaryOperator<T> operator)
Description copied from interface:CtVisitor
Visits a binary operator.- Specified by:
visitCtBinaryOperator
in interfaceCtVisitor
- Overrides:
visitCtBinaryOperator
in classCtInheritanceScanner
-
visitCtBlock
public <R> void visitCtBlock(CtBlock<R> block)
Description copied from interface:CtVisitor
Visits a block of code.- Specified by:
visitCtBlock
in interfaceCtVisitor
- Overrides:
visitCtBlock
in classCtInheritanceScanner
-
visitCtBreak
public void visitCtBreak(CtBreak b)
Description copied from interface:CtVisitor
Visits abreak
statement.- Specified by:
visitCtBreak
in interfaceCtVisitor
- Overrides:
visitCtBreak
in classCtInheritanceScanner
-
visitCtCase
public <E> void visitCtCase(CtCase<E> caseStatement)
Description copied from interface:CtVisitor
Visits acase
clause.- Specified by:
visitCtCase
in interfaceCtVisitor
- Overrides:
visitCtCase
in classCtInheritanceScanner
-
visitCtCatch
public void visitCtCatch(CtCatch catchBlock)
Description copied from interface:CtVisitor
Visits acatch
clause.- Specified by:
visitCtCatch
in interfaceCtVisitor
- Overrides:
visitCtCatch
in classCtInheritanceScanner
-
visitCtCatchVariable
public <T> void visitCtCatchVariable(CtCatchVariable<T> e)
Description copied from interface:CtVisitor
Visits a catch variable declaration.- Specified by:
visitCtCatchVariable
in interfaceCtVisitor
- Overrides:
visitCtCatchVariable
in classCtInheritanceScanner
-
visitCtClass
public <T> void visitCtClass(CtClass<T> ctClass)
Description copied from interface:CtVisitor
Visits a class declaration.- Specified by:
visitCtClass
in interfaceCtVisitor
- Overrides:
visitCtClass
in classCtInheritanceScanner
-
visitCtTypeParameter
public void visitCtTypeParameter(CtTypeParameter typeParameter)
Description copied from interface:CtVisitor
Visits a type parameter declaration.- Specified by:
visitCtTypeParameter
in interfaceCtVisitor
- Overrides:
visitCtTypeParameter
in classCtInheritanceScanner
-
visitCtConditional
public <T> void visitCtConditional(CtConditional<T> conditional)
Description copied from interface:CtVisitor
Visits a conditional expression- Specified by:
visitCtConditional
in interfaceCtVisitor
- Overrides:
visitCtConditional
in classCtInheritanceScanner
-
visitCtDo
public void visitCtDo(CtDo doLoop)
Description copied from interface:CtVisitor
Visits ado
loop.- Specified by:
visitCtDo
in interfaceCtVisitor
- Overrides:
visitCtDo
in classCtInheritanceScanner
-
visitCtFor
public void visitCtFor(CtFor forLoop)
Description copied from interface:CtVisitor
Visits afor
loop.- Specified by:
visitCtFor
in interfaceCtVisitor
- Overrides:
visitCtFor
in classCtInheritanceScanner
-
visitCtForEach
public void visitCtForEach(CtForEach foreach)
Description copied from interface:CtVisitor
Visits an enhancedfor
loop.- Specified by:
visitCtForEach
in interfaceCtVisitor
- Overrides:
visitCtForEach
in classCtInheritanceScanner
-
visitCtWhile
public void visitCtWhile(CtWhile whileLoop)
Description copied from interface:CtVisitor
Visits awhile
loop.- Specified by:
visitCtWhile
in interfaceCtVisitor
- Overrides:
visitCtWhile
in classCtInheritanceScanner
-
visitCtIf
public void visitCtIf(CtIf ifElement)
Description copied from interface:CtVisitor
Visits anif
statement.- Specified by:
visitCtIf
in interfaceCtVisitor
- Overrides:
visitCtIf
in classCtInheritanceScanner
-
visitCtSuperAccess
public <T> void visitCtSuperAccess(CtSuperAccess<T> superAccess)
Description copied from interface:CtVisitor
Visits an access to a super invocation.- Specified by:
visitCtSuperAccess
in interfaceCtVisitor
- Overrides:
visitCtSuperAccess
in classCtInheritanceScanner
-
visitCtInvocation
public <T> void visitCtInvocation(CtInvocation<T> invocation)
Description copied from interface:CtVisitor
Visits an executable invocation.- Specified by:
visitCtInvocation
in interfaceCtVisitor
- Overrides:
visitCtInvocation
in classCtInheritanceScanner
-
visitCtNewArray
public <T> void visitCtNewArray(CtNewArray<T> newArray)
Description copied from interface:CtVisitor
Visits an array construction.- Specified by:
visitCtNewArray
in interfaceCtVisitor
- Overrides:
visitCtNewArray
in classCtInheritanceScanner
-
visitCtConstructorCall
public <T> void visitCtConstructorCall(CtConstructorCall<T> ctConstructorCall)
Description copied from interface:CtVisitor
Visits a call to a constructor.- Specified by:
visitCtConstructorCall
in interfaceCtVisitor
- Overrides:
visitCtConstructorCall
in classCtInheritanceScanner
-
visitCtNewClass
public <T> void visitCtNewClass(CtNewClass<T> newClass)
Description copied from interface:CtVisitor
Visits an anonymous class construction.- Specified by:
visitCtNewClass
in interfaceCtVisitor
- Overrides:
visitCtNewClass
in classCtInheritanceScanner
-
visitCtLambda
public <T> void visitCtLambda(CtLambda<T> lambda)
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
public void visitCtPackage(CtPackage ctPackage)
Description copied from interface:CtVisitor
Visits a package declaration.- Specified by:
visitCtPackage
in interfaceCtVisitor
- Overrides:
visitCtPackage
in classCtInheritanceScanner
-
visitCtReturn
public <R> void visitCtReturn(CtReturn<R> returnStatement)
Description copied from interface:CtVisitor
Visits areturn
statement.- Specified by:
visitCtReturn
in interfaceCtVisitor
- Overrides:
visitCtReturn
in classCtInheritanceScanner
-
visitCtSwitch
public <E> void visitCtSwitch(CtSwitch<E> switchStatement)
Description copied from interface:CtVisitor
Visits aswitch
statement.- Specified by:
visitCtSwitch
in interfaceCtVisitor
- Overrides:
visitCtSwitch
in classCtInheritanceScanner
-
visitCtSwitchExpression
public <T,S> void visitCtSwitchExpression(CtSwitchExpression<T,S> switchExpression)
Description copied from interface:CtVisitor
Visits aswitch
expression.- Specified by:
visitCtSwitchExpression
in interfaceCtVisitor
- Overrides:
visitCtSwitchExpression
in classCtInheritanceScanner
-
visitCtSynchronized
public void visitCtSynchronized(CtSynchronized synchro)
Description copied from interface:CtVisitor
Visits asynchronized
modifier.- Specified by:
visitCtSynchronized
in interfaceCtVisitor
- Overrides:
visitCtSynchronized
in classCtInheritanceScanner
-
visitCtThrow
public void visitCtThrow(CtThrow throwStatement)
Description copied from interface:CtVisitor
Visits athrow
statement.- Specified by:
visitCtThrow
in interfaceCtVisitor
- Overrides:
visitCtThrow
in classCtInheritanceScanner
-
visitCtTry
public void visitCtTry(CtTry tryBlock)
Description copied from interface:CtVisitor
Visits atry
statement.- Specified by:
visitCtTry
in interfaceCtVisitor
- Overrides:
visitCtTry
in classCtInheritanceScanner
-
visitCtTryWithResource
public void visitCtTryWithResource(CtTryWithResource tryWithResource)
Description copied from interface:CtVisitor
Visits atry
with resource statement.- Specified by:
visitCtTryWithResource
in interfaceCtVisitor
- Overrides:
visitCtTryWithResource
in classCtInheritanceScanner
-
visitCtUnaryOperator
public <T> void visitCtUnaryOperator(CtUnaryOperator<T> operator)
Description copied from interface:CtVisitor
Visits a unary operator.- Specified by:
visitCtUnaryOperator
in interfaceCtVisitor
- Overrides:
visitCtUnaryOperator
in classCtInheritanceScanner
-
visitCtWildcardReference
public void visitCtWildcardReference(CtWildcardReference e)
Description copied from interface:CtVisitor
Visits a reference to a wildcard.- Specified by:
visitCtWildcardReference
in interfaceCtVisitor
- Overrides:
visitCtWildcardReference
in classCtInheritanceScanner
-
visitCtYieldStatement
public void visitCtYieldStatement(CtYieldStatement e)
Description copied from interface:CtVisitor
Visits a yield statement.- Specified by:
visitCtYieldStatement
in interfaceCtVisitor
- Overrides:
visitCtYieldStatement
in classCtInheritanceScanner
-
visitCtTypePattern
public void visitCtTypePattern(CtTypePattern pattern)
Description copied from interface:CtVisitor
Visits a pattern.- Specified by:
visitCtTypePattern
in interfaceCtVisitor
- Overrides:
visitCtTypePattern
in classCtInheritanceScanner
- 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
- Overrides:
visitCtRecord
in classCtInheritanceScanner
- Parameters:
recordType
- the record to visit.
-
visitCtRecordComponent
public void visitCtRecordComponent(CtRecordComponent recordComponent)
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.
-
-