Uses of Interface
spoon.processing.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
Modifier 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
Modifier 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.Modifier 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.SpoonModifier 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).Modifier and TypeMethodDescriptionboolean
ProcessingManager.addProcessor(Processor<?> p)
Adds a processor.Modifier and TypeMethodDescriptionvoid
ProcessingManager.addProcessor(Class<? extends Processor<?>> type)
Adds a processor by instantiating its type (a class that must define an empty constructor).ModifierConstructorDescriptionAbstractParallelProcessor(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
Modifier and TypeMethodDescriptionvoid
CtModel.processWith(Processor<?> processor)
process this model with the given processorvoid
CtModelImpl.processWith(Processor<?> processor)
-
Uses of Processor in spoon.reflect.visitor
Modifier 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.Modifier and TypeFieldDescriptionDefaultJavaPrettyPrinter.preprocessors
Handle imports of classes.Modifier 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
Modifier and TypeClassDescriptionclass
A processor that generates compilable Java source files from the meta-model.Modifier and TypeMethodDescriptionProcessor<?>
QueueProcessingManager.getCurrentProcessor()
Processor<?>
RuntimeProcessingManager.getCurrentProcessor()
Modifier and TypeMethodDescriptionQueueProcessingManager.getProcessors()
RuntimeProcessingManager.getProcessors()
Modifier 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
Modifier and TypeMethodDescriptionvoid
QueueProcessingManager.addProcessor(Class<? extends Processor<?>> type)
void
RuntimeProcessingManager.addProcessor(Class<? extends Processor<?>> type)
-
Uses of Processor in spoon.support.compiler.jdt
Modifier and TypeMethodDescriptionvoid
JDTBasedSpoonCompiler.process(Collection<Processor<? extends CtElement>> processors)
-
Uses of Processor in spoon.support.visitor
-
Uses of Processor in spoon.testing
Modifier and TypeMethodDescriptionAbstractAssert.withProcessor(Processor<?> processor)
Applies the processor on the actual value.Modifier and TypeMethodDescriptionAbstractAssert.withProcessor(Class<? extends Processor<?>> processor)
Applies the processor on the actual value. -
Uses of Processor in spoon.testing.utils
Modifier and TypeMethodDescriptionstatic void
ProcessorUtils.initProperties(Processor<?> p, ProcessorProperties properties)
sets the fields of processor "p" given as parameter according to the propertiesModifier and TypeMethodDescriptionstatic void
ProcessorUtils.process(Factory factory, Collection<Processor<?>> processors)