Package com.google.gson.stream
Class JsonScope
java.lang.Object
com.google.gson.stream.JsonScope
Lexical scoping elements within a JSON reader or writer.
- Since:
- 1.6
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
A document that's been closed and cannot be accessed.(package private) static final int
An object whose most recent element is a key.(package private) static final int
An array with no elements requires no separators or newlines before it is closed.(package private) static final int
No object or array has been started.(package private) static final int
An object with no name/value pairs requires no separators or newlines before it is closed.(package private) static final int
An array with at least one value requires a comma and newline before the next element.(package private) static final int
A document with at an array or object.(package private) static final int
An object with at least one name/value pair requires a comma and newline before the next element. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EMPTY_ARRAY
static final int EMPTY_ARRAYAn array with no elements requires no separators or newlines before it is closed.- See Also:
-
NONEMPTY_ARRAY
static final int NONEMPTY_ARRAYAn array with at least one value requires a comma and newline before the next element.- See Also:
-
EMPTY_OBJECT
static final int EMPTY_OBJECTAn object with no name/value pairs requires no separators or newlines before it is closed.- See Also:
-
DANGLING_NAME
static final int DANGLING_NAMEAn object whose most recent element is a key. The next element must be a value.- See Also:
-
NONEMPTY_OBJECT
static final int NONEMPTY_OBJECTAn object with at least one name/value pair requires a comma and newline before the next element.- See Also:
-
EMPTY_DOCUMENT
static final int EMPTY_DOCUMENTNo object or array has been started.- See Also:
-
NONEMPTY_DOCUMENT
static final int NONEMPTY_DOCUMENTA document with at an array or object.- See Also:
-
CLOSED
static final int CLOSEDA document that's been closed and cannot be accessed.- See Also:
-
-
Constructor Details
-
JsonScope
JsonScope()
-