MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / back

Method back

src/main/java/com/volmit/adapt/util/JSONTokener.java:100–108  ·  view source on GitHub ↗

Back up one character. This provides a sort of lookahead capability, so that you can test for a digit or letter before attempting to parse the next number or identifier.

()

Source from the content-addressed store, hash-verified

98 * next number or identifier.
99 */
100 public void back() throws JSONException {
101 if (this.usePrevious || this.index <= 0) {
102 throw new JSONException("Stepping back two steps is not supported");
103 }
104 this.index -= 1;
105 this.character -= 1;
106 this.usePrevious = true;
107 this.eof = false;
108 }
109
110 public boolean end() {
111 return this.eof && !this.usePrevious;

Callers 11

moreMethod · 0.95
nextToMethod · 0.95
nextValueMethod · 0.95
skipToMethod · 0.95
parseMethod · 0.80
nextContentMethod · 0.80
nextMetaMethod · 0.80
nextTokenMethod · 0.80
parseMethod · 0.80
JSONArrayMethod · 0.80
JSONObjectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected