Class JsonThrowableProcessor
- java.lang.Object
-
- jadex.transformation.jsonserializer.processors.AbstractJsonProcessor
-
- jadex.transformation.jsonserializer.processors.JsonBeanProcessor
-
- jadex.transformation.jsonserializer.processors.JsonThrowableProcessor
-
- All Implemented Interfaces:
ITraverseProcessor
public class JsonThrowableProcessor extends JsonBeanProcessor
-
-
Field Summary
-
Fields inherited from class jadex.transformation.jsonserializer.processors.JsonBeanProcessor
intro
-
-
Constructor Summary
Constructors Constructor Description JsonThrowableProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isApplicable(java.lang.Object object, java.lang.reflect.Type type, java.lang.ClassLoader targetcl, JsonReadContext context)
Test if the processor is applicable.protected boolean
isApplicable(java.lang.Object object, java.lang.reflect.Type type, java.lang.ClassLoader targetcl, JsonWriteContext context)
Test if the processor is applicable.protected java.lang.Object
readObject(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, JsonReadContext context)
Process an object.protected java.lang.Object
writeObject(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, JsonWriteContext context)
Process an object.-
Methods inherited from class jadex.transformation.jsonserializer.processors.JsonBeanProcessor
convertBasicType, getReturnObject, readProperties, writeProperties
-
Methods inherited from class jadex.transformation.jsonserializer.processors.AbstractJsonProcessor
isApplicable, process
-
-
-
-
Method Detail
-
isApplicable
protected boolean isApplicable(java.lang.Object object, java.lang.reflect.Type type, java.lang.ClassLoader targetcl, JsonReadContext context)
Test if the processor is applicable.- Overrides:
isApplicable
in classJsonBeanProcessor
- 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.
-
isApplicable
protected boolean isApplicable(java.lang.Object object, java.lang.reflect.Type type, java.lang.ClassLoader targetcl, JsonWriteContext context)
Test if the processor is applicable.- Overrides:
isApplicable
in classJsonBeanProcessor
- 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.
-
readObject
protected java.lang.Object readObject(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, JsonReadContext context)
Process an object.- Overrides:
readObject
in classJsonBeanProcessor
- 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.
-
writeObject
protected java.lang.Object writeObject(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, JsonWriteContext context)
Process an object.- Overrides:
writeObject
in classJsonBeanProcessor
- 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.
-
-