Class FilterProcessor
java.lang.Object
jadex.common.transformation.traverser.FilterProcessor
- All Implemented Interfaces:
ITraverseProcessor
Filter processor for directly returning specific objects as is.
If filter return true, the processors applies and returns the
object as is.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isApplicable
(Object object, Type type, ClassLoader targetcl, Object context) Test if the processor is applicable.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.
-
Field Details
-
filter
protected jadex.common.IFilter filterThe filter.
-
-
Constructor Details
-
FilterProcessor
public FilterProcessor(jadex.common.IFilter filter) Create a new filter processor.
-
-
Method Details
-
isApplicable
Test if the processor is applicable.- Specified by:
isApplicable
in interfaceITraverseProcessor
- 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 interfaceITraverseProcessor
- 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.
-