AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 属性 | 所有成员列表
com.google.gson.stream.JsonToken 枚举类型参考

Public 属性

 BEGIN_ARRAY
 
 END_ARRAY
 
 BEGIN_OBJECT
 
 END_OBJECT
 
 NAME
 
 STRING
 
 NUMBER
 
 BOOLEAN
 
 NULL
 
 END_DOCUMENT
 

详细描述

A structure, name or value type in a JSON-encoded string.

作者
Jesse Wilson
自从
1.6

类成员变量说明

com.google.gson.stream.JsonToken.BEGIN_ARRAY

The opening of a JSON array. Written using JsonWriter#beginObject and read using JsonReader#beginObject.

com.google.gson.stream.JsonToken.BEGIN_OBJECT

The opening of a JSON object. Written using JsonWriter#beginObject and read using JsonReader#beginObject.

com.google.gson.stream.JsonToken.BOOLEAN

A JSON

true

or

false

.

com.google.gson.stream.JsonToken.END_ARRAY

The closing of a JSON array. Written using JsonWriter#endArray and read using JsonReader#endArray.

com.google.gson.stream.JsonToken.END_DOCUMENT

The end of the JSON stream. This sentinel value is returned by JsonReader#peek() to signal that the JSON-encoded value has no more tokens.

com.google.gson.stream.JsonToken.END_OBJECT

The closing of a JSON object. Written using JsonWriter#endObject and read using JsonReader#endObject.

com.google.gson.stream.JsonToken.NAME

A JSON property name. Within objects, tokens alternate between names and their values. Written using JsonWriter#name and read using JsonReader#nextName

com.google.gson.stream.JsonToken.NULL

A JSON

null

.

com.google.gson.stream.JsonToken.NUMBER

A JSON number represented in this API by a Java

double

,

long

, or

int

.

com.google.gson.stream.JsonToken.STRING

A JSON string.


枚举说明文档从下列文件生成: