Uses of Interface
spoon.processing.Processor
Packages that use Processor
Package
Description
This root package provides the default integrated launchers for Spoon program processing.
This package defines interfaces for Java file compilation with Spoon.
This package contains the core API for code processing.
This package defines the Spoon's compile-time meta-model of Java programs.
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.
-
Uses of Processor in spoon
Modifier and TypeMethodDescriptionLauncher.getProcessors()
Gets the list of processors instance to be initially applied during the processing.Modifier and TypeMethodDescription<T extends CtElement>
voidLauncher.addProcessor(Processor<T> processor)
<T extends CtElement>
voidSpoonAPI.addProcessor(Processor<T> processor)
Adds an instance of a processor.<T extends CtElement>
FluentLauncherAdds an instance of a processor.Modifier and TypeMethodDescriptionvoid
SpoonModelBuilder.process(Collection<Processor<? extends CtElement>> processors)
Processes the Java model with the given processors.<T extends CtElement>
FluentLauncherAdds an instance of a processor. -
Uses of Processor in spoon.compiler
Methods in spoon.compiler with parameters of type ProcessorModifier and TypeMethodDescriptionvoid
This method should be called to print out a message during the processing.void
Helper method called by a processor to report an error, warning or message as dictated by the severity parameter. -
Uses of Processor in spoon.processing
Subinterfaces of Processor in spoon.processingModifier and TypeInterfaceDescriptioninterface
AnnotationProcessor<A extends Annotation,E extends CtElement>
This interface defines an annotation processor.interface
FileGenerator<T extends CtElement>
This interface should be implemented by processing tasks that generate new files as processing results.Classes in spoon.processing that implement ProcessorModifier and TypeClassDescriptionclass
AbstractAnnotationProcessor<A extends Annotation,E extends CtElement>
This class defines an abstract annotation processor to be subclassed by the user for defining new annotation processors including Java 8 annotations.class
This class defines an abstract processor to be subclassed by the user for defining new manual processors.class
AbstractParallelProcessor<E extends CtElement>
AbstractParallelProcessor allows using multiple threads for concurrent processing withAbstractProcessor
.class
AbstractProcessor<E extends CtElement>
This class defines an abstract processor to be subclassed by the user for defining new processors.class
Creates an empty class spoon.SpoonMethods in spoon.processing that return types with arguments of type ProcessorModifier and TypeMethodDescriptionCollection<Processor<?>>
ProcessingManager.getProcessors()
Gets the processors that have been added to the manager and that will be applied when invoking one of theprocess
methods).Methods in spoon.processing with parameters of type ProcessorModifier and TypeMethodDescriptionboolean
ProcessingManager.addProcessor(Processor<?> p)
Adds a processor.Method parameters in spoon.processing with type arguments of type ProcessorModifier and TypeMethodDescriptionvoid
ProcessingManager.addProcessor(Class<? extends Processor<?>> type)
Adds a processor by instantiating its type (a class that must define an empty constructor).Constructor parameters in spoon.processing with type arguments of type ProcessorModifierConstructorDescriptionAbstractParallelProcessor(Iterable<Processor<E>> processors)
Creates a new AbstractParallelProcessor from given iterable.AbstractParallelProcessor(Iterable<Processor<E>> processors, int numberOfProcessors)
Creates a new AbstractParallelProcessor from given iterable. -
Uses of Processor in spoon.reflect
Methods in spoon.reflect with parameters of type ProcessorModifier and TypeMethodDescriptionvoid
CtModel.processWith(Processor<?> processor)
process this model with the given processorvoid
CtModelImpl.processWith(Processor<?> processor)
-
Uses of Processor in spoon.reflect.visitor
Classes in spoon.reflect.visitor that implement ProcessorModifier and TypeClassDescriptionclass
Forces fully qualified identifiers by making many elements explicit (by calling setImplicit(false)).class
Marks all types references as implicit so all types will get imported.class
Updates list of import statements of compilation unit followingCtElement.isImplicit()
.class
Detects conflicts needed to be required be a fully-qualified name.Fields in spoon.reflect.visitor with type parameters of type ProcessorModifier and TypeFieldDescriptionDefaultJavaPrettyPrinter.preprocessors
Handle imports of classes.Methods in spoon.reflect.visitor that return types with arguments of type ProcessorMethod parameters in spoon.reflect.visitor with type arguments of type ProcessorModifier and TypeMethodDescriptionvoid
DefaultJavaPrettyPrinter.setPreprocessors(List<Processor<CtElement>> preprocessors)
Set preprocessors that the printer automatically runs on the model before printing it. -
Uses of Processor in spoon.support
Classes in spoon.support that implement ProcessorModifier and TypeClassDescriptionclass
A processor that generates compilable Java source files from the meta-model.Methods in spoon.support that return ProcessorModifier and TypeMethodDescriptionProcessor<?>
QueueProcessingManager.getCurrentProcessor()
Processor<?>
RuntimeProcessingManager.getCurrentProcessor()
Methods in spoon.support that return types with arguments of type ProcessorModifier and TypeMethodDescriptionQueueProcessingManager.getProcessors()
RuntimeProcessingManager.getProcessors()
Methods in spoon.support with parameters of type ProcessorModifier and TypeMethodDescriptionboolean
QueueProcessingManager.addProcessor(Processor<?> p)
boolean
RuntimeProcessingManager.addProcessor(Processor<?> p)
void
RuntimeProcessingManager.process(Collection<? extends CtElement> elements, Processor<?> processor)
Recursively processes elements and their children with a given processor.void
Recursively processes an element and its children with a given processor.void
void
Method parameters in spoon.support with type arguments of type ProcessorModifier and TypeMethodDescriptionvoid
QueueProcessingManager.addProcessor(Class<? extends Processor<?>> type)
void
RuntimeProcessingManager.addProcessor(Class<? extends Processor<?>> type)
-
Uses of Processor in spoon.support.compiler.jdt
Method parameters in spoon.support.compiler.jdt with type arguments of type ProcessorModifier and TypeMethodDescriptionvoid
JDTBasedSpoonCompiler.process(Collection<Processor<? extends CtElement>> processors)
-
Uses of Processor in spoon.support.visitor
Methods in spoon.support.visitor that return ProcessorMethods in spoon.support.visitor with parameters of type Processor -
Uses of Processor in spoon.testing
Fields in spoon.testing with type parameters of type ProcessorMethods in spoon.testing with parameters of type ProcessorModifier and TypeMethodDescriptionAbstractAssert.withProcessor(Processor<?> processor)
Applies the processor on the actual value.Method parameters in spoon.testing with type arguments of type ProcessorModifier and TypeMethodDescriptionAbstractAssert.withProcessor(Class<? extends Processor<?>> processor)
Applies the processor on the actual value. -
Uses of Processor in spoon.testing.utils
Methods in spoon.testing.utils with parameters of type ProcessorModifier and TypeMethodDescriptionstatic void
ProcessorUtils.initProperties(Processor<?> p, ProcessorProperties properties)
sets the fields of processor "p" given as parameter according to the propertiesMethod parameters in spoon.testing.utils with type arguments of type ProcessorModifier and TypeMethodDescriptionstatic void
ProcessorUtils.process(Factory factory, Collection<Processor<?>> processors)