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 TypeMethodDescriptionvoidSpoonModelBuilder.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 TypeMethodDescriptionvoidThis method should be called to print out a message during the processing.voidHelper 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 TypeInterfaceDescriptioninterfaceAnnotationProcessor<A extends Annotation,E extends CtElement>This interface defines an annotation processor.interfaceFileGenerator<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 TypeClassDescriptionclassAbstractAnnotationProcessor<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.classThis class defines an abstract processor to be subclassed by the user for defining new manual processors.classAbstractParallelProcessor<E extends CtElement>AbstractParallelProcessor allows using multiple threads for concurrent processing withAbstractProcessor.classAbstractProcessor<E extends CtElement>This class defines an abstract processor to be subclassed by the user for defining new processors.classCreates 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 theprocessmethods).Methods in spoon.processing with parameters of type ProcessorModifier and TypeMethodDescriptionbooleanProcessingManager.addProcessor(Processor<?> p)Adds a processor.Method parameters in spoon.processing with type arguments of type ProcessorModifier and TypeMethodDescriptionvoidProcessingManager.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 TypeMethodDescriptionvoidCtModel.processWith(Processor<?> processor)process this model with the given processorvoidCtModelImpl.processWith(Processor<?> processor) -
Uses of Processor in spoon.reflect.visitor
Classes in spoon.reflect.visitor that implement ProcessorModifier and TypeClassDescriptionclassForces fully qualified identifiers by making many elements explicit (by calling setImplicit(false)).classMarks all types references as implicit so all types will get imported.classUpdates list of import statements of compilation unit followingCtElement.isImplicit().classDetects conflicts needed to be required be a fully-qualified name.Fields in spoon.reflect.visitor with type parameters of type ProcessorModifier and TypeFieldDescriptionDefaultJavaPrettyPrinter.preprocessorsHandle 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 TypeMethodDescriptionvoidDefaultJavaPrettyPrinter.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 TypeClassDescriptionclassA 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 TypeMethodDescriptionbooleanQueueProcessingManager.addProcessor(Processor<?> p)booleanRuntimeProcessingManager.addProcessor(Processor<?> p)voidRuntimeProcessingManager.process(Collection<? extends CtElement> elements, Processor<?> processor)Recursively processes elements and their children with a given processor.voidRecursively processes an element and its children with a given processor.voidvoidMethod parameters in spoon.support with type arguments of type ProcessorModifier and TypeMethodDescriptionvoidQueueProcessingManager.addProcessor(Class<? extends Processor<?>> type)voidRuntimeProcessingManager.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 TypeMethodDescriptionvoidJDTBasedSpoonCompiler.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 voidProcessorUtils.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 voidProcessorUtils.process(Factory factory, Collection<Processor<?>> processors)