AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | 所有成员列表
com.google.gson.JsonDeserializationContext接口 参考

Public 成员函数

public< T > T deserialize (JsonElement json, Type typeOfT) throws JsonParseException
 

详细描述

Context for deserialization that is passed to a custom deserializer during invocation of its JsonDeserializer#deserialize(JsonElement, Type, JsonDeserializationContext) method.

作者
Inderjeet Singh
Joel Leitch

成员函数说明

public<T> T com.google.gson.JsonDeserializationContext.deserialize ( JsonElement  json,
Type  typeOfT 
) throws JsonParseException

Invokes default deserialization on the specified object. It should never be invoked on the element received as a parameter of the JsonDeserializer#deserialize(JsonElement, Type, JsonDeserializationContext) method. Doing so will result in an infinite loop since Gson will in-turn call the custom deserializer again.

参数
jsonthe parse tree.
typeOfTtype of the expected return value.
<T>The type of the deserialized object.
返回
An object of type typeOfT.
异常
JsonParseExceptionif the parse tree does not contain expected data.

该接口的文档由以下文件生成: