| AndBase开发框架 1.6

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

全部 类 命名空间 文件 函数 变量 枚举值 页
类 | Public 成员函数 | 静态 Public 成员函数 | Private 成员函数 | Private 属性 | 所有成员列表
com.google.gson.TreeTypeAdapter< T >类 参考
类 com.google.gson.TreeTypeAdapter< T > 继承关系图:

## 类
class | SingleTypeFactory

## Public 成员函数
T | read (JsonReader in) throws IOException
void | write (JsonWriter out, T value) throws IOException

## 静态 Public 成员函数
static TypeAdapterFactory | newFactory (TypeToken<?> exactType, Object typeAdapter)
static TypeAdapterFactory | newFactoryWithMatchRawType (TypeToken<?> exactType, Object typeAdapter)
static TypeAdapterFactory | newTypeHierarchyFactory (Class<?> hierarchyType, Object typeAdapter)

## Private 成员函数
| TreeTypeAdapter (JsonSerializer< T > serializer, JsonDeserializer< T > deserializer, Gson gson, TypeToken< T > typeToken, TypeAdapterFactory skipPast)
TypeAdapter< T > | delegate ()

## Private 属性
final JsonSerializer< T > | serializer
final JsonDeserializer< T > | deserializer
final Gson | gson
final TypeToken< T > | typeToken
final TypeAdapterFactory | skipPast
TypeAdapter< T > | delegate

## 详细描述

Adapts a Gson 1.x tree-style adapter as a streaming TypeAdapter. Since the tree adapter may be serialization-only or deserialization-only, this class has a facility to lookup a delegate type adapter on demand.

## 构造及析构函数说明

com.google.gson.TreeTypeAdapter< T >.TreeTypeAdapter | ( | JsonSerializer< T > | serializer,
|  | JsonDeserializer< T > | deserializer,
|  | Gson | gson,
|  | TypeToken< T > | typeToken,
|  | TypeAdapterFactory | skipPast
| ) |  |
| inline private

## 成员函数说明

TypeAdapter<T> com.google.gson.TreeTypeAdapter< T >.delegate | ( |  | ) |
| inline private

static TypeAdapterFactory com.google.gson.TreeTypeAdapter< T >.newFactory | ( | TypeToken<?> | exactType,
|  | Object | typeAdapter
| ) |  |
| inline static

Returns a new factory that will match each type against

exactType

.

static TypeAdapterFactory com.google.gson.TreeTypeAdapter< T >.newFactoryWithMatchRawType | ( | TypeToken<?> | exactType,
|  | Object | typeAdapter
| ) |  |
| inline static

Returns a new factory that will match each type and its raw type against

exactType

.

static TypeAdapterFactory com.google.gson.TreeTypeAdapter< T >.newTypeHierarchyFactory | ( | Class<?> | hierarchyType,
|  | Object | typeAdapter
| ) |  |
| inline static

Returns a new factory that will match each type's raw type for assignability to

hierarchyType

.

T com.google.gson.TreeTypeAdapter< T >.read | ( | JsonReader | in | ) | throws IOException
| inline

void com.google.gson.TreeTypeAdapter< T >.write | ( | JsonWriter | out,
|  | T | value
| ) |  | throws IOException
| inline

## 类成员变量说明

TypeAdapter<T> com.google.gson.TreeTypeAdapter< T >.delegate
| private

The delegate is lazily created because it may not be needed, and creating it may fail.

final JsonDeserializer<T> com.google.gson.TreeTypeAdapter< T >.deserializer
| private

final Gson com.google.gson.TreeTypeAdapter< T >.gson
| private

final JsonSerializer<T> com.google.gson.TreeTypeAdapter< T >.serializer
| private

final TypeAdapterFactory com.google.gson.TreeTypeAdapter< T >.skipPast
| private

final TypeToken<T> com.google.gson.TreeTypeAdapter< T >.typeToken
| private

该类的文档由以下文件生成:

- src/com/google/gson/TreeTypeAdapter.java