public class ArrayProcessor extends Object implements ITraverseProcessor
Constructor and Description |
---|
ArrayProcessor()
Create a new array processor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getReturnObject(Object object,
Class clazz,
boolean clone,
ClassLoader targetcl) |
boolean |
isApplicable(Object object,
Class<?> clazz,
boolean clone,
ClassLoader targetcl)
Test if the processor is applicable.
|
Object |
process(Object object,
Class<?> clazz,
List<ITraverseProcessor> processors,
Traverser traverser,
Map<Object,Object> traversed,
boolean clone,
ClassLoader targetcl,
Object context)
Process an object.
|
public boolean isApplicable(Object object, Class<?> clazz, boolean clone, ClassLoader targetcl)
isApplicable
in interface ITraverseProcessor
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.public Object process(Object object, Class<?> clazz, List<ITraverseProcessor> processors, Traverser traverser, Map<Object,Object> traversed, boolean clone, ClassLoader targetcl, Object context)
process
in interface ITraverseProcessor
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.public Object getReturnObject(Object object, Class clazz, boolean clone, ClassLoader targetcl)
Copyright © 2012. All Rights Reserved.