com.carrotsearch.ant.tasks.junit4.events.json
Class JsonAnnotationAdapter
java.lang.Object
com.carrotsearch.ant.tasks.junit4.events.json.JsonAnnotationAdapter
- All Implemented Interfaces:
- com.google.gson.JsonDeserializer<java.lang.annotation.Annotation>, com.google.gson.JsonSerializer<java.lang.annotation.Annotation>
public class JsonAnnotationAdapter
- extends java.lang.Object
- implements com.google.gson.JsonSerializer<java.lang.annotation.Annotation>, com.google.gson.JsonDeserializer<java.lang.annotation.Annotation>
|
Method Summary |
java.lang.annotation.Annotation |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context)
|
com.google.gson.JsonElement |
serialize(java.lang.annotation.Annotation src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonAnnotationAdapter
public JsonAnnotationAdapter(java.lang.ClassLoader refLoader)
serialize
public com.google.gson.JsonElement serialize(java.lang.annotation.Annotation src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
- Specified by:
serialize in interface com.google.gson.JsonSerializer<java.lang.annotation.Annotation>
deserialize
public java.lang.annotation.Annotation deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context)
throws com.google.gson.JsonParseException
- Specified by:
deserialize in interface com.google.gson.JsonDeserializer<java.lang.annotation.Annotation>
- Throws:
com.google.gson.JsonParseException
Copyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.