com.google.gson.internal
Class GsonInternalAccess

java.lang.Object
  extended by com.google.gson.internal.GsonInternalAccess

public abstract class GsonInternalAccess
extends java.lang.Object

Internal-only APIs of Gson available only to other classes in Gson.


Field Summary
static GsonInternalAccess INSTANCE
           
 
Constructor Summary
GsonInternalAccess()
           
 
Method Summary
abstract
<T> TypeAdapter<T>
getNextAdapter(Gson gson, TypeAdapterFactory skipPast, TypeToken<T> type)
          Returns a type adapter for type that isn't skipPast.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static GsonInternalAccess INSTANCE
Constructor Detail

GsonInternalAccess

public GsonInternalAccess()
Method Detail

getNextAdapter

public abstract <T> TypeAdapter<T> getNextAdapter(Gson gson,
                                                  TypeAdapterFactory skipPast,
                                                  TypeToken<T> type)
Returns a type adapter for type that isn't skipPast. This can be used for type adapters to compose other, simpler type adapters.

Throws:
java.lang.IllegalArgumentException - if this GSON cannot serialize and deserialize type.