| Modifier and Type | Field and Description |
|---|---|
private java.util.List<JSONStringer.Scope> |
JSONStringer.stack
Unlike the original implementation, this stack isn't limited to 20
levels of nesting.
|
| Modifier and Type | Method and Description |
|---|---|
private JSONStringer.Scope |
JSONStringer.peek()
Returns the value on the top of the stack.
|
static JSONStringer.Scope |
JSONStringer.Scope.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSONStringer.Scope[] |
JSONStringer.Scope.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) JSONStringer |
JSONStringer.close(JSONStringer.Scope empty,
JSONStringer.Scope nonempty,
java.lang.String closeBracket)
Closes the current scope by appending any necessary whitespace and the
given bracket.
|
(package private) JSONStringer |
JSONStringer.open(JSONStringer.Scope empty,
java.lang.String openBracket)
Enters a new scope by appending any necessary whitespace and the given
bracket.
|
private void |
JSONStringer.replaceTop(JSONStringer.Scope topOfStack)
Replace the value on the top of the stack with the given value.
|