| java.lang.Object spoon.reflect.factory.SubFactory spoon.reflect.factory.ExecutableFactory
All known Subclasses: spoon.reflect.factory.ConstructorFactory, spoon.reflect.factory.MethodFactory,
Method Summary | |
public CtAnonymousExecutable | createAnonymous(CtClass> target, CtBlock> body) Creates an anonymous executable (initializer block) in a target class). | public CtParameter<T> | createParameter(CtExecutable> parent, CtTypeReference<T> type, String name) Creates a new parameter. | public CtParameterReference<T> | createParameterReference(CtParameter<T> parameter) Creates a parameter reference from an existing parameter. | public CtExecutableReference<T> | createReference(CtExecutable<T> e) Creates an executable reference from an existing executable. | public CtExecutableReference<T> | createReference(CtTypeReference> declaringType, CtTypeReference<T> type, String methodName, CtTypeReference>... parameterTypes) Creates an executable reference. | public CtExecutableReference<T> | createReference(CtTypeReference> declaringType, boolean isStatic, CtTypeReference<T> type, String methodName, CtTypeReference>... parameterTypes) Creates an executable reference. | public CtExecutableReference<T> | createReference(CtTypeReference> declaringType, boolean isStatic, CtTypeReference<T> type, String methodName, List<CtTypeReference<?>> parameterTypes) Creates an executable reference. | public CtExecutableReference<T> | createReference(CtTypeReference> declaringType, CtTypeReference<T> type, String methodName, List<CtTypeReference<?>> parameterTypes) Creates an executable reference. | public CtExecutableReference<T> | createReference(String signature) Creates an executable reference from its signature, as defined by the
executable reference's toString. |
ExecutableFactory | public ExecutableFactory(Factory factory)(Code) | | Creates a new executable sub-factory.
Parameters: factory - the parent factory |
createParameterReference | public CtParameterReference<T> createParameterReference(CtParameter<T> parameter)(Code) | | Creates a parameter reference from an existing parameter.
< Parameters: T - >the parameter's type Parameters: parameter - the parameter |
createReference | public CtExecutableReference<T> createReference(CtTypeReference> declaringType, CtTypeReference<T> type, String methodName, CtTypeReference>... parameterTypes)(Code) | | Creates an executable reference.
Parameters: declaringType - reference to the declaring type Parameters: type - the executable's type Parameters: methodName - simple name Parameters: parameterTypes - list of parameter's types |
createReference | public CtExecutableReference<T> createReference(CtTypeReference> declaringType, boolean isStatic, CtTypeReference<T> type, String methodName, CtTypeReference>... parameterTypes)(Code) | | Creates an executable reference.
Parameters: declaringType - reference to the declaring type Parameters: isStatic - if this reference references a static executable Parameters: type - the return type of the executable Parameters: methodName - simple name Parameters: parameterTypes - list of parameter's types |
createReference | public CtExecutableReference<T> createReference(CtTypeReference> declaringType, boolean isStatic, CtTypeReference<T> type, String methodName, List<CtTypeReference<?>> parameterTypes)(Code) | | Creates an executable reference.
Parameters: declaringType - reference to the declaring type Parameters: isStatic - if this reference references a static executable Parameters: type - the return type of the executable Parameters: methodName - simple name Parameters: parameterTypes - list of parameter's types |
createReference | public CtExecutableReference<T> createReference(CtTypeReference> declaringType, CtTypeReference<T> type, String methodName, List<CtTypeReference<?>> parameterTypes)(Code) | | Creates an executable reference.
Parameters: declaringType - reference to the declaring type Parameters: type - the return type of the executable Parameters: methodName - simple name Parameters: parameterTypes - list of parameter's types |
createReference | public CtExecutableReference<T> createReference(String signature)(Code) | | Creates an executable reference from its signature, as defined by the
executable reference's toString.
|
|
|