Uses of Interface
spoon.reflect.declaration.CtExecutable
Packages that use 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
Methods in spoon.refactoring that return CtExecutableModifier and TypeMethodDescriptionCtExecutable<?>MethodCallState.getMethod()Getter for the method, without saved call state.Methods in spoon.refactoring that return types with arguments of type CtExecutableModifier and TypeMethodDescriptionMethodCallState.getCallerMethods()Returns a collection containing all CtExecutable invoking the method.List<CtExecutable<?>>CtParameterRemoveRefactoring.getTargetExecutables()Methods in spoon.refactoring with parameters of type CtExecutableModifier and TypeMethodDescriptionvoidMethodCallState.add(CtExecutable<?> method)Adds a CtExecutable to the methods invoking this method.booleanMethodCallState.contains(CtExecutable<?> o)voidMethodCallState.remove(CtExecutable<?> o)protected voidCtParameterRemoveRefactoring.removeParameter(CtExecutable<?> executable)Constructors in spoon.refactoring with parameters of type CtExecutable -
Uses of CtExecutable in spoon.reflect.code
Subinterfaces of CtExecutable in spoon.reflect.codeModifier and TypeInterfaceDescriptioninterfaceCtLambda<T>This code element represents the creation of a lambda.Methods in spoon.reflect.code with type parameters of type CtExecutableModifier and TypeMethodDescription<T1 extends CtExecutable<T>>
T1CtLambda.setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes) -
Uses of CtExecutable in spoon.reflect.declaration
Subinterfaces of CtExecutable in spoon.reflect.declarationModifier and TypeInterfaceDescriptioninterfaceThis element defines an annotation method declared in an annotation type.interfaceThis element defines an anonymous executable block declaration in a class.interfaceThis element defines a constructor declaration.interfaceCtMethod<T>This element defines a method declaration.Methods in spoon.reflect.declaration with type parameters of type CtExecutableModifier 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.Methods in spoon.reflect.declaration that return CtExecutableModifier 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
Methods in spoon.reflect.factory with parameters of type CtExecutableModifier 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
Methods in spoon.reflect.reference that return CtExecutableModifier and TypeMethodDescriptionCtExecutableReference.getDeclaration()CtExecutableReference.getExecutableDeclaration()Returns a subtypeCtExecutablethat 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
Methods in spoon.reflect.visitor with parameters of type CtExecutableModifier and TypeMethodDescription<R> voidCtInheritanceScanner.scanCtExecutable(CtExecutable<R> e)Scans an abstract executable.voidElementPrinterHelper.writeExecutableParameters(CtExecutable<?> executable)voidElementPrinterHelper.writeThrowsClause(CtExecutable<?> executable)writes the thrown exception with a ListPrinter -
Uses of CtExecutable in spoon.reflect.visitor.filter
Methods in spoon.reflect.visitor.filter with parameters of type CtExecutableModifier and TypeMethodDescriptionExecutableReferenceFilter.addExecutable(CtExecutable<?> executable)Add nextCtExecutablewhoseCtExecutableReferences has to be matchedvoidAllMethodsSameSignatureFunction.apply(CtExecutable<?> targetExecutable, CtConsumer<Object> outputConsumer)Constructors in spoon.reflect.visitor.filter with parameters of type CtExecutableModifierConstructorDescriptionExecutableReferenceFilter(CtExecutable<?> executable)Creates a new executable reference filter. -
Uses of CtExecutable in spoon.support.compiler.jdt
Methods in spoon.support.compiler.jdt with parameters of type CtExecutable -
Uses of CtExecutable in spoon.support.reflect.code
Classes in spoon.support.reflect.code that implement CtExecutableMethods in spoon.support.reflect.code with type parameters of type CtExecutableModifier 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
Classes in spoon.support.reflect.declaration that implement CtExecutableModifier and TypeClassDescriptionclassThe implementation forCtAnnotationMethod.classclassclassThe implementation forCtExecutable.classCtMethodImpl<T>The implementation forCtMethod.classThis class is used to represent the constructor of an array when calling with an expression likeMethods in spoon.support.reflect.declaration with type parameters of type CtExecutableModifier 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)Methods in spoon.support.reflect.declaration that return CtExecutableModifier 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)Methods in spoon.support.reflect.declaration with parameters of type CtExecutableModifier and TypeMethodDescriptionprotected booleanCtTypeImpl.hasSameParameters(CtExecutable<?> candidate, CtTypeReference<?>... parameterTypes) -
Uses of CtExecutable in spoon.support.reflect.reference
Methods in spoon.support.reflect.reference that return CtExecutableModifier and TypeMethodDescriptionCtExecutableReferenceImpl.getDeclaration()CtExecutableReferenceImpl.getExecutableDeclaration() -
Uses of CtExecutable in spoon.support.util
Classes in spoon.support.util with type parameters of type CtExecutableModifier and TypeClassDescriptionclassSignatureBasedSortedSet<E extends CtExecutable<?>>maintains unicity with method signatures -
Uses of CtExecutable in spoon.support.visitor
Methods in spoon.support.visitor with parameters of type CtExecutableModifier and TypeMethodDescriptionbooleanClassTypingContext.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