Package jadex.binary
Class StackTraceElementCodec
- java.lang.Object
-
- jadex.binary.AbstractCodec
-
- jadex.binary.StackTraceElementCodec
-
- All Implemented Interfaces:
IDecoderHandler,ITraverseProcessor
public class StackTraceElementCodec extends AbstractCodec
Codec for encoding and decoding stacktrace element.
-
-
Constructor Summary
Constructors Constructor Description StackTraceElementCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcreateObject(java.lang.Class<?> clazz, IDecodingContext context)Creates the object during decoding.java.lang.Objectencode(java.lang.Object object, java.lang.Class<?> clazz, java.util.List<ITraverseProcessor> preprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, Traverser traverser, java.lang.ClassLoader targetcl, IEncodingContext ec)Encode the object.booleanisApplicable(java.lang.Class<?> clazz)Tests if the decoder can decode the class.-
Methods inherited from class jadex.binary.AbstractCodec
canReference, decode, decodeSubObjects, isApplicable, isFixedFrame, process, recordKnownDecodedObject
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(java.lang.Class<?> clazz)
Tests if the decoder can decode the class.- Specified by:
isApplicablein interfaceIDecoderHandler- Specified by:
isApplicablein classAbstractCodec- Parameters:
clazz- The class.- Returns:
- True, if the decoder can decode this class.
-
createObject
public java.lang.Object createObject(java.lang.Class<?> clazz, IDecodingContext context)Creates the object during decoding.- Specified by:
createObjectin classAbstractCodec- Parameters:
clazz- The class of the object.context- The decoding context.- Returns:
- The created object.
-
encode
public java.lang.Object encode(java.lang.Object object, java.lang.Class<?> clazz, java.util.List<ITraverseProcessor> preprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, Traverser traverser, java.lang.ClassLoader targetcl, IEncodingContext ec)Encode the object.- Specified by:
encodein classAbstractCodec
-
-