Public 成员函数 | |
| Excluder | withVersion (double ignoreVersionsAfter) |
| Excluder | withModifiers (int...modifiers) |
| Excluder | disableInnerClassSerialization () |
| Excluder | excludeFieldsWithoutExposeAnnotation () |
| Excluder | withExclusionStrategy (ExclusionStrategy exclusionStrategy, boolean serialization, boolean deserialization) |
| boolean | excludeField (Field field, boolean serialize) |
| boolean | excludeClass (Class<?> clazz, boolean serialize) |
Public 成员函数 继承自 com.google.gson.TypeAdapterFactory | |
| < T > TypeAdapter< T > | create (Gson gson, TypeToken< T > type) |
静态 Public 属性 | |
| static final Excluder | DEFAULT = new Excluder() |
Protected 成员函数 | |
| Excluder | clone () |
包函数 | |
| public< T > TypeAdapter< T > | create (final Gson gson, final TypeToken< T > type) |
Private 成员函数 | |
| boolean | isAnonymousOrLocal (Class<?> clazz) |
| boolean | isInnerClass (Class<?> clazz) |
| boolean | isStatic (Class<?> clazz) |
| boolean | isValidVersion (Since since, Until until) |
| boolean | isValidSince (Since annotation) |
| boolean | isValidUntil (Until annotation) |
Private 属性 | |
| double | version = IGNORE_VERSIONS |
| int | modifiers = Modifier.TRANSIENT | Modifier.STATIC |
| boolean | serializeInnerClasses = true |
| boolean | requireExpose |
| List< ExclusionStrategy > | serializationStrategies = Collections.emptyList() |
| List< ExclusionStrategy > | deserializationStrategies = Collections.emptyList() |
静态 Private 属性 | |
| static final double | IGNORE_VERSIONS = -1.0d |
This class selects which fields and types to omit. It is configurable, supporting version attributes Since and Until, modifiers, synthetic fields, anonymous and local classes, inner classes, and fields with the Expose annotation.
This class is a type adapter factory; types that are excluded will be adapted to null. It may delegate to another type adapter if only one direction is excluded.
|
inlineprotected |
|
inlinepackage |
The delegate is lazily created because it may not be needed, and creating it may fail.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.8