Interface ProcessingManager

    • Method Detail

      • addProcessor

        void addProcessor​(java.lang.Class<? extends Processor<?>> type)
        Adds a processor by instantiating its type (a class that must define an empty constructor).
        See Also:
        getProcessors()
      • addProcessor

        void addProcessor​(java.lang.String qualifiedName)
        Adds a processor by instantiating its type (a class that must define an empty constructor and implement Processor).
        Parameters:
        qualifiedName - the qualified name of the processor's type
        See Also:
        getProcessors()
      • getProcessors

        java.util.Collection<Processor<?>> getProcessors()
        Gets the processors that have been added to the manager and that will be applied when invoking one of the process methods).
        See Also:
        process(Collection)
      • process

        void process​(java.util.Collection<? extends CtElement> elements)
        Recursively processes a collection of CtElements with this manager. All the processors added to this manager (see getProcessors()) should be applied before the method returns (blocking implementation) or before another call to a process method (non-blocking implementation). Processors that have been applied are removed from the manager and getProcessors() does not contain them anymore.
      • process

        void process​(CtElement element)
        Recursively processes a CtElement with this manager. All the processors added to this manager (see getProcessors()) should be applied before the method returns (blocking implementation) or before another call to a process method (non-blocking implementation). Processors that have been applied are removed from the manager and getProcessors() does not contain them anymore.