AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | Private 成员函数 | Private 属性 | 静态 Private 属性 | 所有成员列表
com.google.gson.internal.bind.JsonTreeWriter类 参考
类 com.google.gson.internal.bind.JsonTreeWriter 继承关系图:
com.google.gson.stream.JsonWriter

Public 成员函数

 JsonTreeWriter ()
 
JsonElement get ()
 
JsonWriter beginArray () throws IOException
 
JsonWriter endArray () throws IOException
 
JsonWriter beginObject () throws IOException
 
JsonWriter endObject () throws IOException
 
JsonWriter name (String name) throws IOException
 
JsonWriter value (String value) throws IOException
 
JsonWriter nullValue () throws IOException
 
JsonWriter value (boolean value) throws IOException
 
JsonWriter value (double value) throws IOException
 
JsonWriter value (long value) throws IOException
 
JsonWriter value (Number value) throws IOException
 
void flush () throws IOException
 
void close () throws IOException
 
- Public 成员函数 继承自 com.google.gson.stream.JsonWriter
 JsonWriter (Writer out)
 
final void setIndent (String indent)
 
final void setLenient (boolean lenient)
 
boolean isLenient ()
 
final void setHtmlSafe (boolean htmlSafe)
 
final boolean isHtmlSafe ()
 
final void setSerializeNulls (boolean serializeNulls)
 
final boolean getSerializeNulls ()
 
JsonWriter beginArray () throws IOException
 
JsonWriter endArray () throws IOException
 
JsonWriter beginObject () throws IOException
 
JsonWriter endObject () throws IOException
 
JsonWriter name (String name) throws IOException
 
JsonWriter value (String value) throws IOException
 
JsonWriter nullValue () throws IOException
 
JsonWriter value (boolean value) throws IOException
 
JsonWriter value (double value) throws IOException
 
JsonWriter value (long value) throws IOException
 
JsonWriter value (Number value) throws IOException
 
void flush () throws IOException
 
void close () throws IOException
 

Private 成员函数

JsonElement peek ()
 
void put (JsonElement value)
 

Private 属性

final List< JsonElementstack = new ArrayList<JsonElement>()
 
String pendingName
 
JsonElement product = JsonNull.INSTANCE
 

静态 Private 属性

static final Writer UNWRITABLE_WRITER
 
static final JsonPrimitive SENTINEL_CLOSED = new JsonPrimitive("closed")
 

额外继承的成员函数

- 包函数 继承自 com.google.gson.stream.JsonWriter
 [instance initializer]
 

详细描述

This writer creates a JsonElement.

构造及析构函数说明

com.google.gson.internal.bind.JsonTreeWriter.JsonTreeWriter ( )
inline

成员函数说明

JsonWriter com.google.gson.internal.bind.JsonTreeWriter.beginArray ( ) throws IOException
inline
JsonWriter com.google.gson.internal.bind.JsonTreeWriter.beginObject ( ) throws IOException
inline
void com.google.gson.internal.bind.JsonTreeWriter.close ( ) throws IOException
inline
JsonWriter com.google.gson.internal.bind.JsonTreeWriter.endArray ( ) throws IOException
inline
JsonWriter com.google.gson.internal.bind.JsonTreeWriter.endObject ( ) throws IOException
inline
void com.google.gson.internal.bind.JsonTreeWriter.flush ( ) throws IOException
inline
JsonElement com.google.gson.internal.bind.JsonTreeWriter.get ( )
inline

Returns the top level object produced by this writer.

JsonWriter com.google.gson.internal.bind.JsonTreeWriter.name ( String  name) throws IOException
inline
JsonWriter com.google.gson.internal.bind.JsonTreeWriter.nullValue ( ) throws IOException
inline
JsonElement com.google.gson.internal.bind.JsonTreeWriter.peek ( )
inlineprivate
void com.google.gson.internal.bind.JsonTreeWriter.put ( JsonElement  value)
inlineprivate
JsonWriter com.google.gson.internal.bind.JsonTreeWriter.value ( String  value) throws IOException
inline
JsonWriter com.google.gson.internal.bind.JsonTreeWriter.value ( boolean  value) throws IOException
inline
JsonWriter com.google.gson.internal.bind.JsonTreeWriter.value ( double  value) throws IOException
inline
JsonWriter com.google.gson.internal.bind.JsonTreeWriter.value ( long  value) throws IOException
inline
JsonWriter com.google.gson.internal.bind.JsonTreeWriter.value ( Number  value) throws IOException
inline

类成员变量说明

String com.google.gson.internal.bind.JsonTreeWriter.pendingName
private

The name for the next JSON object value. If non-null, the top of the stack is a JsonObject.

JsonElement com.google.gson.internal.bind.JsonTreeWriter.product = JsonNull.INSTANCE
private

the JSON element constructed by this writer.

final JsonPrimitive com.google.gson.internal.bind.JsonTreeWriter.SENTINEL_CLOSED = new JsonPrimitive("closed")
staticprivate

Added to the top of the stack when this writer is closed to cause following ops to fail.

final List<JsonElement> com.google.gson.internal.bind.JsonTreeWriter.stack = new ArrayList<JsonElement>()
private

The JsonElements and JsonArrays under modification, outermost to innermost.

final Writer com.google.gson.internal.bind.JsonTreeWriter.UNWRITABLE_WRITER
staticprivate
初始值:
= new Writer() {
@Override public void write(char[] buffer, int offset, int counter) {
throw new AssertionError();
}
@Override public void flush() throws IOException {
throw new AssertionError();
}
@Override public void close() throws IOException {
throw new AssertionError();
}
}

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