MCPcopy Create free account
hub / github.com/apache/tomcat / jj_scan_token

Method jj_scan_token

java/org/apache/el/parser/ELParser.java:4088–4117  ·  view source on GitHub ↗
(int kind)

Source from the content-addressed store, hash-verified

4086 static private final LookaheadSuccess jj_ls = new LookaheadSuccess();
4087
4088 private boolean jj_scan_token(int kind) {
4089 if (jj_scanpos == jj_lastpos) {
4090 jj_la--;
4091 if (jj_scanpos.next == null) {
4092 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
4093 } else {
4094 jj_lastpos = jj_scanpos = jj_scanpos.next;
4095 }
4096 } else {
4097 jj_scanpos = jj_scanpos.next;
4098 }
4099 if (jj_rescan) {
4100 int i = 0;
4101 Token tok = token;
4102 while (tok != null && tok != jj_scanpos) {
4103 i++;
4104 tok = tok.next;
4105 }
4106 if (tok != null) {
4107 jj_add_error_token(kind, i);
4108 }
4109 }
4110 if (jj_scanpos.kind != kind) {
4111 return true;
4112 }
4113 if (jj_la == 0 && jj_scanpos == jj_lastpos) {
4114 throw jj_ls;
4115 }
4116 return false;
4117 }
4118
4119
4120 /** Get the next Token. */

Callers 15

jj_3R_Or_164_13_42Method · 0.95
jj_3_5Method · 0.95
jj_3R_null_331_18_24Method · 0.95
jj_3_8Method · 0.95

Calls 2

jj_add_error_tokenMethod · 0.95
getNextTokenMethod · 0.45

Tested by

no test coverage detected