static enum JSONStringer.Scope extends java.lang.Enum<JSONStringer.Scope>
| Enum Constant and Description |
|---|
DANGLING_KEY
An object whose most recent element is a key.
|
EMPTY_ARRAY
An array with no elements requires no separators or newlines before
it is closed.
|
EMPTY_OBJECT
An object with no keys or values requires no separators or newlines
before it is closed.
|
NONEMPTY_ARRAY
A array with at least one value requires a comma and newline before
the next element.
|
NONEMPTY_OBJECT
An object with at least one name/value pair requires a comma and
newline before the next element.
|
NULL
A special bracketless array needed by JSONStringer.join() and
JSONObject.quote() only.
|
| Modifier and Type | Method and Description |
|---|---|
static JSONStringer.Scope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSONStringer.Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONStringer.Scope EMPTY_ARRAY
public static final JSONStringer.Scope NONEMPTY_ARRAY
public static final JSONStringer.Scope EMPTY_OBJECT
public static final JSONStringer.Scope DANGLING_KEY
public static final JSONStringer.Scope NONEMPTY_OBJECT
public static final JSONStringer.Scope NULL
public static JSONStringer.Scope[] values()
for (JSONStringer.Scope c : JSONStringer.Scope.values()) System.out.println(c);
public static JSONStringer.Scope valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null