Uses of Interface
spoon.reflect.declaration.CtExecutable
Package
Description
This package contains the meta-model part that models the executable code (methods and constructors' bodies, field initializers).
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines all the sub-factories for the Spoon meta-model.
This package defines the references to program elements for the meta-model.
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains a set of useful filters when querying the model.
-
Uses of CtExecutable in spoon.refactoring
Modifier and TypeMethodDescriptionCtExecutable<?>
MethodCallState.getMethod()
Getter for the method, without saved call state.Modifier and TypeMethodDescriptionMethodCallState.getCallerMethods()
Returns a collection containing all CtExecutable invoking the method.List<CtExecutable<?>>
CtParameterRemoveRefactoring.getTargetExecutables()
Modifier and TypeMethodDescriptionvoid
MethodCallState.add(CtExecutable<?> method)
Adds a CtExecutable to the methods invoking this method.boolean
MethodCallState.contains(CtExecutable<?> o)
void
MethodCallState.remove(CtExecutable<?> o)
protected void
CtParameterRemoveRefactoring.removeParameter(CtExecutable<?> executable)
-
Uses of CtExecutable in spoon.reflect.code
Modifier and TypeInterfaceDescriptioninterface
CtLambda<T>
This code element represents the creation of a lambda.Modifier and TypeMethodDescription<T1 extends CtExecutable<T>>
T1CtLambda.setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes)
-
Uses of CtExecutable in spoon.reflect.declaration
Modifier and TypeInterfaceDescriptioninterface
This element defines an annotation method declared in an annotation type.interface
This element defines an anonymous executable block declaration in a class.interface
This element defines a constructor declaration.interface
CtMethod<T>
This element defines a method declaration.Modifier and TypeMethodDescription<T extends CtExecutable<Void>>
TCtAnonymousExecutable.addParameter(CtParameter<?> parameter)
<T extends CtExecutable<R>>
TCtExecutable.addParameter(CtParameter<?> parameter)
Add a parameter for this executable<T extends CtExecutable<Void>>
TCtAnonymousExecutable.addParameterAt(int position, CtParameter<?> parameter)
<T extends CtExecutable<R>>
TCtExecutable.addParameterAt(int position, CtParameter<?> parameter)
Add a parameter at a specific position in the executable.<T extends CtExecutable<Void>>
TCtAnonymousExecutable.addThrownType(CtTypeReference<? extends Throwable> throwType)
<T extends CtExecutable<R>>
TCtExecutable.addThrownType(CtTypeReference<? extends Throwable> throwType)
add a thrown type.<T1 extends CtExecutable<T>>
T1CtAnnotationMethod.setParameters(List<CtParameter<?>> parameters)
<T extends CtExecutable<Void>>
TCtAnonymousExecutable.setParameters(List<CtParameter<?>> parameters)
<T extends CtExecutable<R>>
TCtExecutable.setParameters(List<CtParameter<?>> parameters)
Sets the parameters.<T1 extends CtExecutable<T>>
T1CtAnnotationMethod.setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes)
<T extends CtExecutable<Void>>
TCtAnonymousExecutable.setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes)
<T extends CtExecutable<R>>
TCtExecutable.setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes)
Sets the thrown types.Modifier and TypeMethodDescriptionCtExecutable.clone()
CtExecutable<?>
CtParameter.getParent()
Gets the executable that is the parent declaration of this parameter declaration. -
Uses of CtExecutable in spoon.reflect.factory
Modifier and TypeMethodDescription<T> CtParameter<T>
ExecutableFactory.createParameter(CtExecutable<?> parent, CtTypeReference<T> type, String name)
Creates a new parameter.<T> CtParameter<T>
Factory.createParameter(CtExecutable<?> parent, CtTypeReference<T> type, String name)
<T> CtParameter<T>
FactoryImpl.createParameter(CtExecutable<?> parent, CtTypeReference<T> type, String name)
<T> CtExecutableReference<T>
ExecutableFactory.createReference(CtExecutable<T> e)
Creates an executable reference from an existing executable. -
Uses of CtExecutable in spoon.reflect.reference
Modifier and TypeMethodDescriptionCtExecutableReference.getDeclaration()
CtExecutableReference.getExecutableDeclaration()
Returns a subtypeCtExecutable
that corresponds to the reference even if its declaring type isn't in the Spoon source path (in this case, the Spoon elements are built with runtime reflection). -
Uses of CtExecutable in spoon.reflect.visitor
Modifier and TypeMethodDescription<R> void
CtInheritanceScanner.scanCtExecutable(CtExecutable<R> e)
Scans an abstract executable.void
ElementPrinterHelper.writeExecutableParameters(CtExecutable<?> executable)
void
ElementPrinterHelper.writeThrowsClause(CtExecutable<?> executable)
writes the thrown exception with a ListPrinter -
Uses of CtExecutable in spoon.reflect.visitor.filter
Modifier and TypeMethodDescriptionExecutableReferenceFilter.addExecutable(CtExecutable<?> executable)
Add nextCtExecutable
whoseCtExecutableReference
s has to be matchedvoid
AllMethodsSameSignatureFunction.apply(CtExecutable<?> targetExecutable, CtConsumer<Object> outputConsumer)
ModifierConstructorDescriptionExecutableReferenceFilter(CtExecutable<?> executable)
Creates a new executable reference filter. -
Uses of CtExecutable in spoon.support.compiler.jdt
-
Uses of CtExecutable in spoon.support.reflect.code
Modifier and TypeMethodDescription<C extends CtExecutable<T>>
CCtLambdaImpl.addParameter(CtParameter<?> parameter)
<C extends CtExecutable<T>>
CCtLambdaImpl.addParameterAt(int position, CtParameter<?> parameter)
<C extends CtExecutable<T>>
CCtLambdaImpl.addThrownType(CtTypeReference<? extends Throwable> throwType)
<C extends CtExecutable<T>>
CCtLambdaImpl.setParameters(List<CtParameter<?>> params)
<C extends CtExecutable<T>>
CCtLambdaImpl.setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes)
-
Uses of CtExecutable in spoon.support.reflect.declaration
Modifier and TypeClassDescriptionclass
The implementation forCtAnnotationMethod
.class
class
class
The implementation forCtExecutable
.class
CtMethodImpl<T>
The implementation forCtMethod
.class
This class is used to represent the constructor of an array when calling with an expression likeModifier and TypeMethodDescription<T extends CtExecutable<R>>
TCtExecutableImpl.addParameter(CtParameter<?> parameter)
<T extends CtExecutable<R>>
TCtExecutableImpl.addParameterAt(int position, CtParameter<?> parameter)
<T extends CtExecutable<R>>
TCtExecutableImpl.addThrownType(CtTypeReference<? extends Throwable> throwType)
<U extends CtExecutable<T>>
UCtAnnotationMethodImpl.setParameters(List<CtParameter<?>> parameters)
<T extends CtExecutable<R>>
TCtExecutableImpl.setParameters(List<CtParameter<?>> parameters)
<U extends CtExecutable<T>>
UCtAnnotationMethodImpl.setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes)
<T extends CtExecutable<R>>
TCtExecutableImpl.setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes)
Modifier and TypeMethodDescriptionCtAnonymousExecutableImpl.addParameter(CtParameter parameter)
CtAnonymousExecutableImpl.addParameterAt(int position, CtParameter parameter)
CtAnonymousExecutableImpl.addThrownType(CtTypeReference throwType)
CtExecutableImpl.clone()
CtExecutable<?>
CtParameterImpl.getParent()
CtAnonymousExecutableImpl.setParameters(List list)
CtAnonymousExecutableImpl.setThrownTypes(Set thrownTypes)
Modifier and TypeMethodDescriptionprotected boolean
CtTypeImpl.hasSameParameters(CtExecutable<?> candidate, CtTypeReference<?>... parameterTypes)
-
Uses of CtExecutable in spoon.support.reflect.reference
Modifier and TypeMethodDescriptionCtExecutableReferenceImpl.getDeclaration()
CtExecutableReferenceImpl.getExecutableDeclaration()
-
Uses of CtExecutable in spoon.support.util
Modifier and TypeClassDescriptionclass
SignatureBasedSortedSet<E extends CtExecutable<?>>
maintains unicity with method signatures -
Uses of CtExecutable in spoon.support.visitor
Modifier and TypeMethodDescriptionboolean
ClassTypingContext.isSameSignature(CtExecutable<?> thisExecutable, CtMethod<?> thatExecutable)
Two methods are considered as having the same signature if they have the same name and argument types See https://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html#jls-8.4.2