Uses of Interface
spoon.reflect.declaration.CtConstructor
Packages that use 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
Methods in spoon.reflect.declaration that return CtConstructorModifier and TypeMethodDescriptionCtConstructor.clone()
CtClass.getConstructor(CtTypeReference<?>... parameterTypes)
Returns the constructor of the class that takes the given argument types.Methods in spoon.reflect.declaration that return types with arguments of type CtConstructorModifier and TypeMethodDescriptionCtClass.getConstructors()
Returns the constructors of this class.Methods in spoon.reflect.declaration with parameters of type CtConstructorModifier and TypeMethodDescriptionCtClass.addConstructor(CtConstructor<T> constructor)
Adds a constructor to this class.void
CtClass.removeConstructor(CtConstructor<T> constructor)
Removes a constructor from this class.Method parameters in spoon.reflect.declaration with type arguments of type CtConstructorModifier and TypeMethodDescriptionCtClass.setConstructors(Set<CtConstructor<T>> constructors)
Sets the constructors for this class. -
Uses of CtConstructor in spoon.reflect.factory
Methods in spoon.reflect.factory that return CtConstructorModifier 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()
Methods in spoon.reflect.factory with parameters of type CtConstructorModifier 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
Methods in spoon.reflect.visitor with parameters of type CtConstructorModifier 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
Methods in spoon.support that return CtConstructorModifier and TypeMethodDescription<T> CtConstructor<T>
DefaultCoreFactory.createConstructor()
<T> CtConstructor<T>
DefaultCoreFactory.createInvisibleArrayConstructor()
-
Uses of CtConstructor in spoon.support.adaption
Constructors in spoon.support.adaption with parameters of type CtConstructorModifierConstructorDescriptionTypeAdaptor(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
Methods in spoon.support.compiler.jdt with parameters of type CtConstructor -
Uses of CtConstructor in spoon.support.reflect.declaration
Classes in spoon.support.reflect.declaration that implement CtConstructorModifier and TypeClassDescriptionclass
class
This class is used to represent the constructor of an array when calling with an expression likeMethods in spoon.support.reflect.declaration that return CtConstructorModifier and TypeMethodDescriptionCtConstructorImpl.clone()
CtClassImpl.getConstructor(CtTypeReference<?>... parameterTypes)
Methods in spoon.support.reflect.declaration that return types with arguments of type CtConstructorMethods in spoon.support.reflect.declaration with parameters of type CtConstructorModifier and TypeMethodDescriptionCtClassImpl.addConstructor(CtConstructor<T> constructor)
void
CtClassImpl.removeConstructor(CtConstructor<T> constructor)
Method parameters in spoon.support.reflect.declaration with type arguments of type CtConstructorModifier and TypeMethodDescriptionCtClassImpl.setConstructors(Set<CtConstructor<T>> constructors)
-
Uses of CtConstructor in spoon.support.visitor
Methods in spoon.support.visitor with parameters of type CtConstructorModifier and TypeMethodDescriptionMethodTypingContext.setConstructor(CtConstructor<?> constructor)
<T> void
SignaturePrinter.visitCtConstructor(CtConstructor<T> c)
-
Uses of CtConstructor in spoon.support.visitor.clone
Methods in spoon.support.visitor.clone with parameters of type CtConstructorModifier 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
Methods in spoon.support.visitor.java.internal with parameters of type CtConstructorModifier and TypeMethodDescriptionvoid
RuntimeBuilderContext.addConstructor(CtConstructor<?> ctConstructor)
Constructors in spoon.support.visitor.java.internal with parameters of type CtConstructorModifierConstructorDescriptionExecutableRuntimeBuilderContext(Executable executable, CtConstructor<?> ctConstructor)
-
Uses of CtConstructor in spoon.support.visitor.replace
Methods in spoon.support.visitor.replace with parameters of type CtConstructorModifier and TypeMethodDescription<T> void
ReplacementVisitor.visitCtConstructor(CtConstructor<T> c)
-
Uses of CtConstructor in spoon.template
Methods in spoon.template that return CtConstructorModifier 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.Methods in spoon.template with parameters of type CtConstructorModifier 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.