MCPcopy
hub / github.com/libgdx/libgdx / nameValue

Method nameValue

gdx/src/com/badlogic/gdx/utils/JsonString.java:160–168  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

158 }
159
160 private void nameValue (String name) {
161 if ((current & isObject) == 0) throw new IllegalStateException("Current item must be an object.");
162 if ((current & needsComma) != 0)
163 buffer.append(',');
164 else
165 current |= needsComma;
166 buffer.append(outputType.quoteName(name));
167 buffer.append(':');
168 }
169
170 public JsonString object (String name) {
171 nameValue(name);

Callers 5

nameMethod · 0.95
objectMethod · 0.95
arrayMethod · 0.95
setMethod · 0.95
jsonMethod · 0.95

Calls 2

quoteNameMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected