public class LegacyMethodInfoEncoder
extends jadex.commons.transformation.binaryserializer.AbstractCodec
Constructor and Description |
---|
LegacyMethodInfoEncoder() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createObject(java.lang.Class<?> clazz,
jadex.commons.transformation.binaryserializer.IDecodingContext context)
Creates the object during decoding.
|
java.lang.Object |
encode(java.lang.Object object,
java.lang.Class<?> clazz,
java.util.List<jadex.commons.transformation.traverser.ITraverseProcessor> processors,
jadex.commons.transformation.traverser.Traverser traverser,
java.util.Map<java.lang.Object,java.lang.Object> traversed,
boolean clone,
jadex.commons.transformation.binaryserializer.IEncodingContext ec)
Encode the object.
|
boolean |
isApplicable(java.lang.Class<?> clazz)
Tests if the decoder can decode the class.
|
boolean |
isApplicable(java.lang.Object object,
java.lang.reflect.Type clazz,
boolean clone,
java.lang.ClassLoader targetcl)
Test if the processor is applicable.
|
public boolean isApplicable(java.lang.Object object, java.lang.reflect.Type clazz, boolean clone, java.lang.ClassLoader targetcl)
isApplicable
in interface jadex.commons.transformation.traverser.ITraverseProcessor
isApplicable
in class jadex.commons.transformation.binaryserializer.AbstractCodec
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 boolean isApplicable(java.lang.Class<?> clazz)
isApplicable
in interface jadex.commons.transformation.binaryserializer.IDecoderHandler
isApplicable
in class jadex.commons.transformation.binaryserializer.AbstractCodec
clazz
- The class.public java.lang.Object encode(java.lang.Object object, java.lang.Class<?> clazz, java.util.List<jadex.commons.transformation.traverser.ITraverseProcessor> processors, jadex.commons.transformation.traverser.Traverser traverser, java.util.Map<java.lang.Object,java.lang.Object> traversed, boolean clone, jadex.commons.transformation.binaryserializer.IEncodingContext ec)
encode
in class jadex.commons.transformation.binaryserializer.AbstractCodec
public java.lang.Object createObject(java.lang.Class<?> clazz, jadex.commons.transformation.binaryserializer.IDecodingContext context)
createObject
in class jadex.commons.transformation.binaryserializer.AbstractCodec
clazz
- The class of the object.context
- The decoding context.