Class StackTraceElementSerializer
java.lang.Object
de.qytera.qtaf.core.gson.serializer.StackTraceElementSerializer
- All Implemented Interfaces:
com.google.gson.JsonSerializer<StackTraceElement>,IQtafJsonSerializer
public class StackTraceElementSerializer
extends Object
implements IQtafJsonSerializer, com.google.gson.JsonSerializer<StackTraceElement>
Converts StackTraceElement object to JSON.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the class of the serialized object.com.google.gson.JsonElementserialize(StackTraceElement stackTraceElement, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext) com.google.gson.JsonObjecttoJson(StackTraceElement stackTraceElement) This method converts a StackTraceElement into a JSON object.
-
Constructor Details
-
StackTraceElementSerializer
public StackTraceElementSerializer()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(StackTraceElement stackTraceElement, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext) - Specified by:
serializein interfacecom.google.gson.JsonSerializer<StackTraceElement>
-
toJson
This method converts a StackTraceElement into a JSON object.- Parameters:
stackTraceElement- stack trace element- Returns:
- json object
-
getSerializedObjectClass
Description copied from interface:IQtafJsonSerializerReturns the class of the serialized object.- Specified by:
getSerializedObjectClassin interfaceIQtafJsonSerializer- Returns:
- the serialized class
-