Home
last modified time | relevance | path

Searched refs:Scope (Results 1 – 3 of 3) sorted by relevance

/libcore/json/src/main/java/org/json/
DJSONStringer.java73 enum Scope { enum in JSONStringer
117 private final List<Scope> stack = new ArrayList<Scope>();
144 return open(Scope.EMPTY_ARRAY, "["); in array()
153 return close(Scope.EMPTY_ARRAY, Scope.NONEMPTY_ARRAY, "]"); in endArray()
163 return open(Scope.EMPTY_OBJECT, "{"); in object()
172 return close(Scope.EMPTY_OBJECT, Scope.NONEMPTY_OBJECT, "}"); in endObject()
180 JSONStringer open(Scope empty, String openBracket) throws JSONException { in open()
195 JSONStringer close(Scope empty, Scope nonempty, String closeBracket) throws JSONException { in close()
196 Scope context = peek(); in close()
213 private Scope peek() throws JSONException { in peek()
[all …]
DJSONArray.java569 stringer.open(JSONStringer.Scope.NULL, ""); in join()
576 stringer.close(JSONStringer.Scope.NULL, JSONStringer.Scope.NULL, ""); in join()
DJSONObject.java779 stringer.open(JSONStringer.Scope.NULL, ""); in quote()
781 stringer.close(JSONStringer.Scope.NULL, JSONStringer.Scope.NULL, ""); in quote()