Class ExcludeProcessor

java.lang.Object
jadex.common.transformation.traverser.ExcludeProcessor
All Implemented Interfaces:
ITraverseProcessor

public class ExcludeProcessor extends Object implements ITraverseProcessor
The exclude processor allows for excluding specific classes from further traversing. Similar to the filter processor but based on predefined classes.
  • Field Details

    • excluded

      protected static final Set<Class<?>> excluded
      The static excluded types.
    • excludedsupertypes

      protected static final Class<?>[] excludedsupertypes
  • Constructor Details

    • ExcludeProcessor

      public ExcludeProcessor()
  • Method Details

    • isApplicable

      public boolean isApplicable(Object object, Type type, ClassLoader targetcl, Object context)
      Test if the processor is applicable.
      Specified by:
      isApplicable in interface ITraverseProcessor
      Parameters:
      object - The object.
      targetcl - If not null, the traverser should make sure that the result object is compatible with the class loader, e.g. by cloning the object using the class loaded from the target class loader.
      Returns:
      True, if is applicable.
    • process

      public Object process(Object object, Type type, Traverser traverser, List<ITraverseProcessor> conversionprocessors, List<ITraverseProcessor> processors, IStringConverter converter, Traverser.MODE mode, ClassLoader targetcl, Object context)
      Process an object.
      Specified by:
      process in interface ITraverseProcessor
      Parameters:
      object - The object.
      targetcl - If not null, the traverser should make sure that the result object is compatible with the class loader, e.g. by cloning the object using the class loaded from the target class loader.
      Returns:
      The processed object.