Uses of Interface
spoon.reflect.declaration.CtConstructor
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 visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains some default implementations for commonly used processing tasks.
This package defines a framework for well-typed pure-Java templates.
-
Uses of CtConstructor in spoon.reflect.declaration
Modifier and TypeMethodDescriptionCtConstructor.clone()
CtClass.getConstructor(CtTypeReference<?>... parameterTypes)
Returns the constructor of the class that takes the given argument types.Modifier and TypeMethodDescriptionCtClass.getConstructors()
Returns the constructors of this class.Modifier and TypeMethodDescriptionCtClass.addConstructor(CtConstructor<T> constructor)
Adds a constructor to this class.void
CtClass.removeConstructor(CtConstructor<T> constructor)
Removes a constructor from this class.Modifier and TypeMethodDescriptionCtClass.setConstructors(Set<CtConstructor<T>> constructors)
Sets the constructors for this class. -
Uses of CtConstructor in spoon.reflect.factory
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.<T> CtConstructor<T>
ConstructorFactory.create(CtClass<T> target, CtConstructor<?> source)
Copies a constructor into a target class.<T> CtConstructor<T>
Creates a constructor into a target class by copying it from a source method.<T> CtConstructor<T>
CoreFactory.createConstructor()
Creates a constructor.<T> CtConstructor<T>
Factory.createConstructor()
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)
Factory.createConstructor(CtClass target, CtConstructor<?> source)
Factory.createConstructor(CtClass target, CtMethod<?> source)
<T> CtConstructor<T>
FactoryImpl.createConstructor()
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)
FactoryImpl.createConstructor(CtClass target, CtConstructor<?> source)
FactoryImpl.createConstructor(CtClass target, CtMethod<?> source)
<T> CtConstructor<T>
ConstructorFactory.createDefault(CtClass<T> target)
Create the default empty constructor.<T> CtConstructor<T>
Factory.createDefault(CtClass<T> target)
<T> CtConstructor<T>
FactoryImpl.createDefault(CtClass<T> target)
<T> CtConstructor<T>
CoreFactory.createInvisibleArrayConstructor()
Creates an invisible array constructor.<T> CtConstructor<T>
Factory.createInvisibleArrayConstructor()
<T> CtConstructor<T>
FactoryImpl.createInvisibleArrayConstructor()
Modifier and TypeMethodDescription<T> CtConstructor<T>
ConstructorFactory.create(CtClass<T> target, CtConstructor<?> source)
Copies a constructor into a target class.Factory.createConstructor(CtClass target, CtConstructor<?> source)
FactoryImpl.createConstructor(CtClass target, CtConstructor<?> source)
<T> CtExecutableReference<T>
ConstructorFactory.createReference(CtConstructor<T> c)
Creates a constructor reference from an existing constructor. -
Uses of CtConstructor in spoon.reflect.visitor
Modifier and TypeMethodDescription<T> void
CtAbstractVisitor.visitCtConstructor(CtConstructor<T> c)
<T> void
CtBiScannerDefault.visitCtConstructor(CtConstructor<T> c)
<T> void
CtInheritanceScanner.visitCtConstructor(CtConstructor<T> e)
<T> void
CtScanner.visitCtConstructor(CtConstructor<T> c)
<T> void
CtVisitor.visitCtConstructor(CtConstructor<T> c)
Visits a constructor declaration.<T> void
DefaultJavaPrettyPrinter.visitCtConstructor(CtConstructor<T> constructor)
-
Uses of CtConstructor in spoon.support
Modifier and TypeMethodDescription<T> CtConstructor<T>
DefaultCoreFactory.createConstructor()
<T> CtConstructor<T>
DefaultCoreFactory.createInvisibleArrayConstructor()
-
Uses of CtConstructor in spoon.support.adaption
ModifierConstructorDescriptionTypeAdaptor(CtConstructor<?> hierarchyStart)
Creates a new type adaptor using the given constructor as the start of its hierarchy. -
Uses of CtConstructor in spoon.support.compiler.jdt
-
Uses of CtConstructor in spoon.support.reflect.declaration
Modifier and TypeClassDescriptionclass
class
This class is used to represent the constructor of an array when calling with an expression likeModifier and TypeMethodDescriptionCtConstructorImpl.clone()
CtClassImpl.getConstructor(CtTypeReference<?>... parameterTypes)
Modifier and TypeMethodDescriptionCtClassImpl.addConstructor(CtConstructor<T> constructor)
void
CtClassImpl.removeConstructor(CtConstructor<T> constructor)
Modifier and TypeMethodDescriptionCtClassImpl.setConstructors(Set<CtConstructor<T>> constructors)
-
Uses of CtConstructor in spoon.support.visitor
Modifier and TypeMethodDescriptionMethodTypingContext.setConstructor(CtConstructor<?> constructor)
<T> void
SignaturePrinter.visitCtConstructor(CtConstructor<T> c)
-
Uses of CtConstructor in spoon.support.visitor.clone
Modifier and TypeMethodDescription<T> void
CloneBuilder.visitCtConstructor(CtConstructor<T> e)
<T> void
CloneVisitor.visitCtConstructor(CtConstructor<T> c)
-
Uses of CtConstructor in spoon.support.visitor.java.internal
Modifier and TypeMethodDescriptionvoid
RuntimeBuilderContext.addConstructor(CtConstructor<?> ctConstructor)
ModifierConstructorDescriptionExecutableRuntimeBuilderContext(Executable executable, CtConstructor<?> ctConstructor)
-
Uses of CtConstructor in spoon.support.visitor.replace
Modifier and TypeMethodDescription<T> void
ReplacementVisitor.visitCtConstructor(CtConstructor<T> c)
-
Uses of CtConstructor in spoon.template
Modifier and TypeMethodDescriptionstatic <T> CtConstructor<T>
Substitution.insertConstructor(CtClass<T> targetClass, Template<?> template, CtConstructor<?> sourceConstructor)
Generates a constructor from a template constructor by substituting all the template parameters by their values.static <T> CtConstructor<T>
Substitution.insertConstructor(CtClass<T> targetClass, Template<?> template, CtMethod<?> sourceMethod)
Generates a constructor from a template method by substituting all the template parameters by their values.Modifier and TypeMethodDescriptionstatic <T> CtConstructor<T>
Substitution.insertConstructor(CtClass<T> targetClass, Template<?> template, CtConstructor<?> sourceConstructor)
Generates a constructor from a template constructor by substituting all the template parameters by their values.