Uses of Interface
spoon.reflect.declaration.CtParameter
Package
Description
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.
This package contains some default implementations for commonly used processing tasks.
-
Uses of CtParameter in spoon.refactoring
Modifier and TypeMethodDescriptionprotected void
CtParameterRemoveRefactoring.createParameterUsedIssue(CtParameter<?> usedParameter, CtParameterReference<?> parameterUsage)
Override this method to get access to details about this refactoring issueCtParameterRemoveRefactoring.setTarget(CtParameter<?> target)
-
Uses of CtParameter in spoon.reflect.declaration
Modifier and TypeMethodDescription<U extends CtParameter<T>>
UCtParameter.setInferred(boolean inferred)
Set to true if this parameter is a lambda parameter with type defined using the `var` keyword.<C extends CtParameter<T>>
CCtParameter.setVarArgs(boolean varArgs)
Sets this parameter to have varargs.Modifier and TypeMethodDescriptionList<CtParameter<?>>
CtExecutable.getParameters()
Gets the parameters list.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.boolean
CtExecutable.removeParameter(CtParameter<?> parameter)
Remove a parameter for this executableModifier and TypeMethodDescription<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. -
Uses of CtParameter in spoon.reflect.factory
Modifier and TypeMethodDescription<T> CtParameter<T>
CoreFactory.createParameter()
Creates a parameter.<T> CtParameter<T>
ExecutableFactory.createParameter(CtExecutable<?> parent, CtTypeReference<T> type, String name)
Creates a new parameter.<T> CtParameter<T>
Factory.createParameter()
<T> CtParameter<T>
Factory.createParameter(CtExecutable<?> parent, CtTypeReference<T> type, String name)
<T> CtParameter<T>
FactoryImpl.createParameter()
<T> CtParameter<T>
FactoryImpl.createParameter(CtExecutable<?> parent, CtTypeReference<T> type, String name)
Modifier and TypeMethodDescription<T> CtParameterReference<T>
ExecutableFactory.createParameterReference(CtParameter<T> parameter)
Creates a parameter reference from an existing parameter.<T> CtParameterReference<T>
Factory.createParameterReference(CtParameter<T> parameter)
<T> CtParameterReference<T>
FactoryImpl.createParameterReference(CtParameter<T> parameter)
Modifier and TypeMethodDescription<T> CtConstructor<T>
ConstructorFactory.create(CtClass<T> target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
Creates an empty constructor.<T> CtConstructor<T>
ConstructorFactory.create(CtClass<T> target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock<T> body)
Creates a constructor.<R, B extends R>
CtMethod<R>MethodFactory.create(CtClass<?> target, Set<ModifierKind> modifiers, CtTypeReference<R> returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock<B> body)
Creates a method.<T> CtMethod<T>
MethodFactory.create(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference<T> returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
Creates an empty method.Factory.createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
Factory.createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
FactoryImpl.createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
FactoryImpl.createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
Factory.createMethod(CtClass<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
Factory.createMethod(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
FactoryImpl.createMethod(CtClass<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
FactoryImpl.createMethod(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
-
Uses of CtParameter in spoon.reflect.reference
-
Uses of CtParameter in spoon.reflect.visitor
Modifier and TypeMethodDescription<T> void
CtAbstractVisitor.visitCtParameter(CtParameter<T> parameter)
<T> void
CtBiScannerDefault.visitCtParameter(CtParameter<T> parameter)
<T> void
CtInheritanceScanner.visitCtParameter(CtParameter<T> e)
<T> void
CtScanner.visitCtParameter(CtParameter<T> parameter)
<T> void
CtVisitor.visitCtParameter(CtParameter<T> parameter)
Visits a parameter declaration.<T> void
DefaultJavaPrettyPrinter.visitCtParameter(CtParameter<T> parameter)
-
Uses of CtParameter in spoon.reflect.visitor.filter
Modifier and TypeMethodDescriptionvoid
ParameterScopeFunction.apply(CtParameter<?> parameter, CtConsumer<Object> outputConsumer)
<T> void
VariableReferenceFunction.Visitor.visitCtParameter(CtParameter<T> parameter)
calls outputConsumer for each reference of the parameter<T> void
VariableScopeFunction.Visitor.visitCtParameter(CtParameter<T> parameter)
calls outputConsumer for each reference of the parameterModifierConstructorDescriptionParameterReferenceFunction(CtParameter<?> parameter)
This constructor allows to define target parameter - the one for which this function will search for. -
Uses of CtParameter in spoon.support
-
Uses of CtParameter 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)
boolean
CtLambdaImpl.removeParameter(CtParameter<?> parameter)
Modifier and TypeMethodDescription<C extends CtExecutable<T>>
CCtLambdaImpl.setParameters(List<CtParameter<?>> params)
-
Uses of CtParameter in spoon.support.reflect.declaration
Modifier and TypeMethodDescription<U extends CtParameter<T>>
UCtParameterImpl.setInferred(boolean inferred)
<C extends CtParameter<T>>
CCtParameterImpl.setVarArgs(boolean varArgs)
Modifier and TypeMethodDescriptionList<CtParameter<?>>
CtAnnotationMethodImpl.getParameters()
List<CtParameter<?>>
CtAnonymousExecutableImpl.getParameters()
List<CtParameter<?>>
CtExecutableImpl.getParameters()
Modifier and TypeMethodDescriptionCtAnonymousExecutableImpl.addParameter(CtParameter parameter)
<T extends CtExecutable<R>>
TCtExecutableImpl.addParameter(CtParameter<?> parameter)
CtAnonymousExecutableImpl.addParameterAt(int position, CtParameter parameter)
<T extends CtExecutable<R>>
TCtExecutableImpl.addParameterAt(int position, CtParameter<?> parameter)
boolean
CtAnonymousExecutableImpl.removeParameter(CtParameter parameter)
boolean
CtExecutableImpl.removeParameter(CtParameter<?> parameter)
Modifier and TypeMethodDescription<U extends CtExecutable<T>>
UCtAnnotationMethodImpl.setParameters(List<CtParameter<?>> parameters)
<T extends CtExecutable<R>>
TCtExecutableImpl.setParameters(List<CtParameter<?>> parameters)
-
Uses of CtParameter in spoon.support.reflect.reference
-
Uses of CtParameter in spoon.support.visitor.clone
Modifier and TypeMethodDescription<T> void
CloneBuilder.visitCtParameter(CtParameter<T> e)
<T> void
CloneVisitor.visitCtParameter(CtParameter<T> parameter)
-
Uses of CtParameter in spoon.support.visitor.equals
-
Uses of CtParameter in spoon.support.visitor.java.internal
Modifier and TypeMethodDescriptionvoid
ExecutableRuntimeBuilderContext.addParameter(CtParameter ctParameter)
void
RuntimeBuilderContext.addParameter(CtParameter ctParameter)
-
Uses of CtParameter in spoon.support.visitor.replace
Modifier and TypeMethodDescription<T> void
ReplacementVisitor.visitCtParameter(CtParameter<T> parameter)