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 Object
- implements TypeAdapterFactory
Type adapter that reflects over the fields and methods of a class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectiveTypeAdapterFactory
public ReflectiveTypeAdapterFactory(ConstructorConstructor constructorConstructor,
FieldNamingStrategy fieldNamingPolicy,
Excluder excluder)
excludeField
public boolean excludeField(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
Copyright © 2012. All Rights Reserved.