com.carrotsearch.ant.tasks.junit4.events.json
Class JsonAnnotationAdapter

java.lang.Object
  extended by com.carrotsearch.ant.tasks.junit4.events.json.JsonAnnotationAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Annotation>, com.google.gson.JsonSerializer<Annotation>

public class JsonAnnotationAdapter
extends Object
implements com.google.gson.JsonSerializer<Annotation>, com.google.gson.JsonDeserializer<Annotation>


Constructor Summary
JsonAnnotationAdapter(ClassLoader refLoader)
           
 
Method Summary
 Annotation deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
           
 com.google.gson.JsonElement serialize(Annotation src, 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
 

Constructor Detail

JsonAnnotationAdapter

public JsonAnnotationAdapter(ClassLoader refLoader)
Method Detail

serialize

public com.google.gson.JsonElement serialize(Annotation src,
                                             Type typeOfSrc,
                                             com.google.gson.JsonSerializationContext context)
Specified by:
serialize in interface com.google.gson.JsonSerializer<Annotation>

deserialize

public Annotation deserialize(com.google.gson.JsonElement json,
                              Type typeOfT,
                              com.google.gson.JsonDeserializationContext context)
                       throws com.google.gson.JsonParseException
Specified by:
deserialize in interface com.google.gson.JsonDeserializer<Annotation>
Throws:
com.google.gson.JsonParseException


Copyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.