com.google.gson.internal.bind
Class ReflectiveTypeAdapterFactory

java.lang.Object
  extended by com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
All Implemented Interfaces:
TypeAdapterFactory

public final class ReflectiveTypeAdapterFactory
extends java.lang.Object
implements TypeAdapterFactory

Type adapter that reflects over the fields and methods of a class.


Nested Class Summary
 class ReflectiveTypeAdapterFactory.Adapter<T>
           
 
Constructor Summary
ReflectiveTypeAdapterFactory(ConstructorConstructor constructorConstructor, FieldNamingStrategy fieldNamingPolicy, Excluder excluder)
           
 
Method Summary
<T> TypeAdapter<T>
create(Gson gson, TypeToken<T> type)
          Returns a type adapter for type, or null if this factory doesn't support type.
 boolean excludeField(java.lang.reflect.Field f, boolean serialize)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveTypeAdapterFactory

public ReflectiveTypeAdapterFactory(ConstructorConstructor constructorConstructor,
                                    FieldNamingStrategy fieldNamingPolicy,
                                    Excluder excluder)
Method Detail

excludeField

public boolean excludeField(java.lang.reflect.Field f,
                            boolean serialize)

create

public <T> TypeAdapter<T> create(Gson gson,
                                 TypeToken<T> type)
Description copied from interface: TypeAdapterFactory
Returns a type adapter for type, or null if this factory doesn't support type.

Specified by:
create in interface TypeAdapterFactory