Package jadex.binary
Class MethodCodec
java.lang.Object
jadex.binary.MethodCodec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateObject
(Class clazz, IDecodingContext context) Creates the object during decoding.encode
(Object object, Class<?> clazz, List<jadex.common.transformation.traverser.ITraverseProcessor> preprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, jadex.common.transformation.traverser.Traverser traverser, ClassLoader targetcl, IEncodingContext ec) Encode the object.boolean
isApplicable
(Class clazz) Tests if the decoder can decode the class.
-
Constructor Details
-
MethodCodec
public MethodCodec()
-
-
Method Details
-
isApplicable
Tests if the decoder can decode the class.- Parameters:
clazz
- The class.- Returns:
- True, if the decoder can decode this class.
-
createObject
Creates the object during decoding.- Parameters:
clazz
- The class of the object.context
- The decoding context.- Returns:
- The created object.
-
encode
public Object encode(Object object, Class<?> clazz, List<jadex.common.transformation.traverser.ITraverseProcessor> preprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, jadex.common.transformation.traverser.Traverser traverser, ClassLoader targetcl, IEncodingContext ec) Encode the object.
-