Package | Description |
---|---|
spoon |
This root package provides the default integrated launchers for Spoon program processing.
|
spoon.metamodel |
Ready to go meta?
This package contains classes that model the Spoon metamodel itself.
|
spoon.pattern | |
spoon.pattern.internal | |
spoon.pattern.internal.parameter | |
spoon.processing |
This package contains the core API for code processing.
|
spoon.reflect |
This package defines the Spoon's compile-time meta-model of Java programs.
|
spoon.reflect.factory |
This package defines all the sub-factories for the Spoon meta-model.
|
spoon.reflect.visitor |
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
|
spoon.support |
This package contains some default implementations for commonly used processing tasks.
|
spoon.support.compiler.jdt | |
spoon.support.gui | |
spoon.support.reflect |
This package provides an implementation of the spoon.reflect package.
|
spoon.support.reflect.declaration | |
spoon.support.template |
This package defines the substitution and matching engines for Java templates.
|
spoon.support.util | |
spoon.support.visitor | |
spoon.support.visitor.java | |
spoon.template |
This package defines a framework for well-typed pure-Java templates.
|
spoon.testing.utils |
Modifier and Type | Field and Description |
---|---|
protected Factory |
Launcher.factory |
Modifier and Type | Method and Description |
---|---|
Factory |
SpoonAPI.createFactory()
Creates a new Spoon factory (may be overridden)
|
Factory |
Launcher.createFactory() |
Factory |
SpoonAPI.getFactory()
Returns the current factory
|
Factory |
SpoonModelBuilder.getFactory()
Returns the working factory
|
Factory |
Launcher.getFactory() |
Modifier and Type | Method and Description |
---|---|
SpoonModelBuilder |
Launcher.createCompiler(Factory factory)
Creates a new Spoon Java compiler in order to process and compile Java
source code.
|
SpoonModelBuilder |
Launcher.createCompiler(Factory factory,
java.util.List<SpoonResource> inputSources) |
SpoonModelBuilder |
Launcher.createCompiler(Factory factory,
java.util.List<SpoonResource> inputSources,
java.util.List<SpoonResource> templateSources)
Creates a new Spoon Java compiler in order to process and compile Java
source code.
|
protected SpoonModelBuilder |
Launcher.getCompilerInstance(Factory factory)
Instantiates the compiler.
|
Constructor and Description |
---|
Launcher(Factory pFactory)
|
Constructor and Description |
---|
Metamodel(Factory factory) |
Modifier and Type | Method and Description |
---|---|
protected Factory |
PatternBuilder.getFactory() |
Factory |
Generator.getFactory() |
Modifier and Type | Field and Description |
---|---|
protected Factory |
DefaultGenerator.factory |
Modifier and Type | Method and Description |
---|---|
Factory |
DefaultGenerator.getFactory() |
Modifier and Type | Method and Description |
---|---|
<T> T |
ValueConvertor.getValueAs(Factory factory,
java.lang.String parameterName,
java.lang.Object value,
java.lang.Class<T> valueClass) |
<T> T |
ValueConvertorImpl.getValueAs(Factory factory,
java.lang.String parameterName,
java.lang.Object value,
java.lang.Class<T> valueClass) |
Constructor and Description |
---|
DefaultGenerator(Factory factory,
ListOfNodes nodes) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
AbstractParameterInfo.convertSingleValue(Factory factory,
java.lang.Object value,
java.lang.Class<T> type) |
protected <T> void |
AbstractParameterInfo.convertValue(Factory factory,
ResultHolder<T> result,
java.lang.Object rawValue) |
<T> void |
AbstractParameterInfo.getValueAs(Factory factory,
ResultHolder<T> result,
ImmutableMap parameters) |
<T> void |
ComputedParameterInfo.getValueAs(Factory factory,
ResultHolder<T> result,
ImmutableMap parameters) |
<T> void |
ParameterInfo.getValueAs(Factory factory,
ResultHolder<T> result,
ImmutableMap parameters)
Takes the value of parameter identified by this
ParameterInfo from the `parameters`
and adds that 0, 1 or more values into result (depending on type of result) |
Modifier and Type | Method and Description |
---|---|
Factory |
FactoryAccessor.getFactory()
Gets the factory of this object.
|
Factory |
AbstractProcessor.getFactory() |
Factory |
AbstractManualProcessor.getFactory() |
Modifier and Type | Method and Description |
---|---|
void |
FactoryAccessor.setFactory(Factory factory)
Sets the factory object.
|
void |
AbstractProcessor.setFactory(Factory factory) |
void |
AbstractManualProcessor.setFactory(Factory factory) |
Modifier and Type | Method and Description |
---|---|
Factory |
ModelStreamer.load(java.io.InputStream in)
Loads a factory (and all its associated Java program elements).
|
Modifier and Type | Method and Description |
---|---|
void |
ModelStreamer.save(Factory f,
java.io.OutputStream out)
Saves a factory (and all its associated Java program elements).
|
Constructor and Description |
---|
CtModelImpl(Factory f) |
Modifier and Type | Class and Description |
---|---|
class |
FactoryImpl
Implements
Factory |
Modifier and Type | Field and Description |
---|---|
protected Factory |
SubFactory.factory |
Modifier and Type | Method and Description |
---|---|
Factory |
CoreFactory.getMainFactory()
Gets the main factory of that core factory (cannot be
null ). |
Factory |
Factory.Templates()
Access to templates
|
Factory |
FactoryImpl.Templates() |
Modifier and Type | Method and Description |
---|---|
void |
CoreFactory.setMainFactory(Factory mainFactory)
Sets the main factory of that core factory.
|
Constructor and Description |
---|
AnnotationFactory(Factory factory)
Creates an annotation sub-factory.
|
ClassFactory(Factory factory)
Creates a class sub-factory.
|
CodeFactory(Factory factory)
Creates a
CtCodeElement sub-factory. |
CompilationUnitFactory(Factory factory)
Creates the evaluation factory.
|
ConstructorFactory(Factory factory)
Creates a new constructor sub-factory.
|
EnumFactory(Factory factory)
Creates a new enum sub-factory.
|
EvalFactory(Factory factory)
Creates the evaluation factory.
|
ExecutableFactory(Factory factory)
Creates a new executable sub-factory.
|
FieldFactory(Factory factory)
Creates a new field sub-factory.
|
InterfaceFactory(Factory factory)
Creates a new interface sub-factory.
|
MethodFactory(Factory factory)
Creates a new method sub-factory.
|
ModuleFactory(Factory factory) |
PackageFactory(Factory factory)
Creates a new package sub-factory.
|
QueryFactory(Factory factory)
Creates the evaluation factory.
|
SubFactory(Factory factory)
The sub-factory constructor takes an instance of the parent factory.
|
TypeFactory(Factory factory)
Creates a new type sub-factory.
|
Modifier and Type | Method and Description |
---|---|
static <E extends CtElement> |
Query.getElements(Factory factory,
Filter<E> filter)
Within a given factory, returns all the program elements that match the
filter.
|
static <R extends CtReference> |
Query.getReferences(Factory factory,
Filter<R> filter)
Within a given factory, returns all the program element references that
match the filter.
|
void |
ElementPrinterHelper.writeAnnotationElement(Factory factory,
java.lang.Object value)
Writes an annotation element.
|
Modifier and Type | Method and Description |
---|---|
Factory |
RuntimeProcessingManager.getFactory() |
Factory |
QueueProcessingManager.getFactory() |
Factory |
DefaultCoreFactory.getMainFactory() |
Factory |
SerializationModelStreamer.load(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
SerializationModelStreamer.save(Factory f,
java.io.OutputStream out) |
void |
RuntimeProcessingManager.setFactory(Factory factory) |
void |
QueueProcessingManager.setFactory(Factory factory) |
void |
DefaultCoreFactory.setMainFactory(Factory mainFactory) |
Constructor and Description |
---|
QueueProcessingManager(Factory factory)
Creates a new processing manager that maintains a queue of processors to
be applied to a given factory.
|
RuntimeProcessingManager(Factory factory)
Creates a new processing manager that maintains a queue of processors to
be applied to a given factory.
|
Modifier and Type | Field and Description |
---|---|
protected Factory |
JDTBasedSpoonCompiler.factory |
Modifier and Type | Method and Description |
---|---|
Factory |
JDTTreeBuilder.getFactory() |
Factory |
JDTBasedSpoonCompiler.getFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
JDTBasedSpoonCompiler.buildModel(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration[] units,
Factory aFactory) |
Constructor and Description |
---|
JDTBasedSpoonCompiler(Factory factory)
Default constructor
|
JDTSnippetCompiler(Factory factory,
java.lang.String contents) |
JDTTreeBuilder(Factory factory) |
Constructor and Description |
---|
SpoonModelTree(Factory factory)
This is the default constructor
|
Modifier and Type | Method and Description |
---|---|
Factory |
CtModifierHandler.getFactory() |
Modifier and Type | Field and Description |
---|---|
protected Factory |
CtElementImpl.factory
this field `factory` must be transient in order to allow proper serialization
the factory is restored in all AST nodes in
SerializationModelStreamer |
Modifier and Type | Method and Description |
---|---|
Factory |
CtElementImpl.getFactory() |
Modifier and Type | Method and Description |
---|---|
void |
CtElementImpl.setFactory(Factory factory) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<CtField<?>> |
Parameters.getAllTemplateParameterFields(java.lang.Class<? extends Template<?>> clazz,
Factory factory)
returns all the compile_time fields of a template representing a template parameter
|
static java.util.Map<java.lang.String,java.lang.Object> |
Parameters.getTemplateParametersAsMap(Factory f,
Template<?> template)
Gets the Map of names to template parameter values for all the template parameters of a given template type
+ adds mapping of template model reference to target type as parameter too
|
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<CtExecutableReference<?>> |
RtHelper.getAllExecutables(java.lang.Class<?> clazz,
Factory factory)
return all executables of this class
|
static java.util.Collection<CtFieldReference<?>> |
RtHelper.getAllFields(java.lang.Class<?> c,
Factory factory)
Gets all the field references for a given class (including the
superclasses').
|
Constructor and Description |
---|
ProcessingVisitor(Factory factory)
The constructor.
|
Constructor and Description |
---|
JavaReflectionTreeBuilder(Factory factory) |
Modifier and Type | Method and Description |
---|---|
Factory |
AbstractTemplate.getFactory()
returns a Spoon factory object from the first template parameter that contains one
|
Modifier and Type | Method and Description |
---|---|
static <T> CtClass<T> |
Substitution.getTemplateCtClass(Factory factory,
Template<?> template) |
Modifier and Type | Method and Description |
---|---|
static Factory |
ModelUtils.build(java.lang.Class<?>... classesToBuild)
Utility method for testing: creates the model of the given `classesToBuild` from src/test/java and returns the factory
|
static Factory |
ModelUtils.build(java.util.function.Consumer<Launcher> config,
java.lang.Class<?>... classesToBuild)
Utility method for testing: creates the model of the given `classesToBuild` from src/test/java and returns the factory
and allows to configure the Launcher first using `config`
|
static Factory |
ModelUtils.build(java.io.File... filesToBuild)
Builds the Spoon mode of the `filesToBuild` given as parameter
|
static Factory |
ModelUtils.buildNoClasspath(java.lang.Class<?>... classesToBuild)
Utility method for testing: creates the noclasspath model of the given `classesToBuild` from src/test/java and returns the factory
|
static Factory |
ModelUtils.createFactory() |
Modifier and Type | Method and Description |
---|---|
static <T extends CtType<?>> |
ModelUtils.build(java.lang.String packageName,
java.lang.String className,
Factory f)
Utility method for testing: creates the model of `packageName` and the factory from src/test/java and returns the CtType corresponding to `className`
|
static void |
ProcessorUtils.process(Factory factory,
java.util.Collection<Processor<?>> processors) |
Copyright © 2007–2021 Inria. All rights reserved.