Class TupleProcessor
- java.lang.Object
- 
- jadex.commons.transformation.traverser.TupleProcessor
 
- 
- All Implemented Interfaces:
- ITraverseProcessor
 
 public class TupleProcessor extends java.lang.Object implements ITraverseProcessor Tuple is itself immutable, but acts as a container for arbitrary objects -> must be cloned.
- 
- 
Constructor SummaryConstructors Constructor Description TupleProcessor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcreateTuple(java.lang.Class clazz)booleanisApplicable(java.lang.Object object, java.lang.reflect.Type type, java.lang.ClassLoader targetcl, java.lang.Object context)Test if the processor is applicable.java.lang.Objectprocess(java.lang.Object object, java.lang.reflect.Type type, Traverser traverser, java.util.List<ITraverseProcessor> conversionprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, java.lang.ClassLoader targetcl, java.lang.Object context)Process an object.
 
- 
- 
- 
Method Detail- 
isApplicablepublic boolean isApplicable(java.lang.Object object, java.lang.reflect.Type type, java.lang.ClassLoader targetcl, java.lang.Object context)Test if the processor is applicable.- Specified by:
- isApplicablein 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.
 
 - 
processpublic java.lang.Object process(java.lang.Object object, java.lang.reflect.Type type, Traverser traverser, java.util.List<ITraverseProcessor> conversionprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, java.lang.ClassLoader targetcl, java.lang.Object context)Process an object.- Specified by:
- processin 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.
 
 - 
createTuplepublic java.lang.Object createTuple(java.lang.Class clazz) 
 
- 
 
-