public interface JsonImplementor
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
JsonImplementor.Node |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
convert(JsonImplementor.Node node,
Class<T> classType)
将
JsonImplementor.Node对象转为指定类型的对象 |
JsonImplementor.Node |
convert(Object object)
将指定类型的对象转为
JsonImplementor.Node对象 |
JsonImplementor.Node |
createNode()
创建一个
JsonImplementor.Node对象 |
JsonImplementor.Node |
fromJson(String json)
将JSON格式文本反序列化为
JsonImplementor.Node对象 |
boolean |
isCompatible(JsonImplementor.Node node,
Class<?> classType)
判断指定的
JsonImplementor.Node对象是否与指定类型匹配 |
String |
toJson(JsonImplementor.Node node)
将
JsonImplementor.Node对象序列化为JSON格式文本 |
JsonImplementor.Node fromJson(String json) throws Exception
JsonImplementor.Node对象json - JSON格式文本JsonImplementor.Node对象Exception - ExceptionString toJson(JsonImplementor.Node node) throws Exception
JsonImplementor.Node对象序列化为JSON格式文本node - JsonImplementor.Node对象Exception - ExceptionJsonImplementor.Node createNode()
JsonImplementor.Node对象JsonImplementor.Node对象boolean isCompatible(JsonImplementor.Node node, Class<?> classType)
JsonImplementor.Node对象是否与指定类型匹配node - JsonImplementor.Node对象classType - 类型<T> T convert(JsonImplementor.Node node, Class<T> classType)
JsonImplementor.Node对象转为指定类型的对象node - JsonImplementor.Node对象classType - 类型JsonImplementor.Node convert(Object object)
JsonImplementor.Node对象object - 指定类型的对象JsonImplementor.Node对象Copyright © 2016. All rights reserved.