MCPcopy Index your code
hub / github.com/apache/tomcat / jj_consume_token

Method jj_consume_token

java/org/apache/tomcat/util/json/JSONParser.java:620–635  ·  view source on GitHub ↗
(int kind)

Source from the content-addressed store, hash-verified

618 }
619
620 private Token jj_consume_token(int kind) throws ParseException {
621 Token oldToken = token;
622 if ((token = jj_nt).next != null) {
623 jj_nt = jj_nt.next;
624 } else {
625 jj_nt = jj_nt.next = token_source.getNextToken();
626 }
627 if (token.kind == kind) {
628 jj_gen++;
629 return token;
630 }
631 jj_nt = token;
632 token = oldToken;
633 jj_kind = kind;
634 throw generateParseException();
635 }
636
637
638 /** Get the next Token. */

Callers 13

ensureEOFMethod · 0.95
anythingMethod · 0.95
objectKeyMethod · 0.95
objectMethod · 0.95
listMethod · 0.95
valueMethod · 0.95
nullValueMethod · 0.95
booleanValueMethod · 0.95
numberMethod · 0.95
stringMethod · 0.95
doubleQuoteStringMethod · 0.95
singleQuoteStringMethod · 0.95

Calls 2

getNextTokenMethod · 0.45

Tested by

no test coverage detected