MCPcopy Index your code
hub / github.com/beanshell/beanshell / jj_scan_token

Method jj_scan_token

src/bsh/Parser.java:6125–6144  ·  view source on GitHub ↗
(int kind)

Source from the content-addressed store, hash-verified

6123 static private final class LookaheadSuccess extends java.lang.Error { }
6124 final private LookaheadSuccess jj_ls = new LookaheadSuccess();
6125 final private boolean jj_scan_token(int kind) {
6126 if (jj_scanpos == jj_lastpos) {
6127 jj_la--;
6128 if (jj_scanpos.next == null) {
6129 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
6130 } else {
6131 jj_lastpos = jj_scanpos = jj_scanpos.next;
6132 }
6133 } else {
6134 jj_scanpos = jj_scanpos.next;
6135 }
6136 if (jj_rescan) {
6137 int i = 0; Token tok = token;
6138 while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
6139 if (tok != null) jj_add_error_token(kind, i);
6140 }
6141 if (jj_scanpos.kind != kind) return true;
6142 if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;
6143 return false;
6144 }
6145
6146 final public Token getNextToken() {
6147 if (token.next != null) token = token.next;

Callers 15

jj_3R_150Method · 0.95
jj_3R_59Method · 0.95
jj_3_18Method · 0.95
jj_3R_152Method · 0.95
jj_3R_72Method · 0.95
jj_3_7Method · 0.95
jj_3R_29Method · 0.95
jj_3R_161Method · 0.95
jj_3R_160Method · 0.95
jj_3R_71Method · 0.95
jj_3R_70Method · 0.95
jj_3R_69Method · 0.95

Calls 2

jj_add_error_tokenMethod · 0.95
getNextTokenMethod · 0.45

Tested by

no test coverage detected