MCPcopy Create free account
hub / github.com/apache/solr / goTo

Method goTo

solr/solrj/src/java/org/noggit/JSONParser.java:1160–1174  ·  view source on GitHub ↗
(int what)

Source from the content-addressed store, hash-verified

1158 }
1159
1160 private void goTo(int what) throws IOException {
1161 if (valstate == what) {
1162 valstate = 0;
1163 return;
1164 }
1165 if (valstate == 0) {
1166 /*int ev = */ nextEvent(); // TODO
1167 if (valstate != what) {
1168 throw err("type mismatch");
1169 }
1170 valstate = 0;
1171 } else {
1172 throw err("type mismatch");
1173 }
1174 }
1175
1176 /** Returns the JSON string value, decoding any escaped characters. */
1177 public String getString() throws IOException {

Callers 5

getStringCharsMethod · 0.95
getStringMethod · 0.95
getLongMethod · 0.95
getBooleanMethod · 0.95
getNullMethod · 0.95

Calls 2

nextEventMethod · 0.95
errMethod · 0.95

Tested by

no test coverage detected