com.google.gson.internal.bind
Class ReflectiveTypeAdapterFactory
java.lang.Object
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.
Method Summary |
|
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 |
ReflectiveTypeAdapterFactory
public ReflectiveTypeAdapterFactory(ConstructorConstructor constructorConstructor,
FieldNamingStrategy fieldNamingPolicy,
Excluder excluder)
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