| spoon.processing.Processor
getEnvironment | Environment getEnvironment()(Code) | | Gets the environment of this processor.
|
getProcessedElementTypes | Set<Class<? extends CtElement>> getProcessedElementTypes()(Code) | | Gets all the element types than need to be processed.
|
init | void init()(Code) | | This method is upcalled to initialize the processor before each
processing round. It is convenient to override this method rather than
using a default constructor to initialize the processor, since the
factory is not initialized at construction time. When overriding, do not
forget to call super.init() first so that all the initializations
performed by superclasses are also applied.
|
isToBeProcessed | boolean isToBeProcessed(E candidate)(Code) | | Tells if this element is to be processed (returns true in
the default implementation).
Parameters: candidate - the candidate true if the candidate is to be processed by theProcessor.process(CtElement) |
process | void process()(Code) | | A callback method upcalled by the manager so that this processor can
manually implement a processing job. On contrary to
Processor.process(CtElement) , this method does not rely on a built-in
meta-model scanner and has to implement its own traversal strategy on the
meta-model, which is stored in the factory (
FactoryAccessor.getFactory ).
Note that if a processor implements both process methods, this one is
upcalled first. This method does nothing in default implementations (
spoon.processing.AbstractProcessor ).
|
processingDone | void processingDone()(Code) | | This method is upcalled by the
ProcessingManager when this
processor has finished a full processing round on the program's model. It
is convenient to override this method to tune the application's strategy
of a set of processors, for instance by dynamically adding processors to
the processing manager when a processing round ends (see
ProcessingManager.addProcessor(Class) ). Does nothing by default.
|
|
|