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

Method generateParseException

src/bsh/Parser.java:6204–6250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6202 }
6203
6204 public ParseException generateParseException() {
6205 jj_expentries.removeAllElements();
6206 boolean[] la1tokens = new boolean[135];
6207 for (int i = 0; i < 135; i++) {
6208 la1tokens[i] = false;
6209 }
6210 if (jj_kind >= 0) {
6211 la1tokens[jj_kind] = true;
6212 jj_kind = -1;
6213 }
6214 for (int i = 0; i < 92; i++) {
6215 if (jj_la1[i] == jj_gen) {
6216 for (int j = 0; j < 32; j++) {
6217 if ((jj_la1_0[i] & (1<<j)) != 0) {
6218 la1tokens[j] = true;
6219 }
6220 if ((jj_la1_1[i] & (1<<j)) != 0) {
6221 la1tokens[32+j] = true;
6222 }
6223 if ((jj_la1_2[i] & (1<<j)) != 0) {
6224 la1tokens[64+j] = true;
6225 }
6226 if ((jj_la1_3[i] & (1<<j)) != 0) {
6227 la1tokens[96+j] = true;
6228 }
6229 if ((jj_la1_4[i] & (1<<j)) != 0) {
6230 la1tokens[128+j] = true;
6231 }
6232 }
6233 }
6234 }
6235 for (int i = 0; i < 135; i++) {
6236 if (la1tokens[i]) {
6237 jj_expentry = new int[1];
6238 jj_expentry[0] = i;
6239 jj_expentries.addElement(jj_expentry);
6240 }
6241 }
6242 jj_endpos = 0;
6243 jj_rescan_token();
6244 jj_add_error_token(0, 0);
6245 int[][] exptokseq = new int[jj_expentries.size()][];
6246 for (int i = 0; i < jj_expentries.size(); i++) {
6247 exptokseq[i] = (int[])jj_expentries.elementAt(i);
6248 }
6249 return new ParseException(token, exptokseq, tokenImage);
6250 }
6251
6252 final public void enable_tracing() {
6253 }

Callers 2

TryStatementMethod · 0.95
jj_consume_tokenMethod · 0.95

Calls 3

jj_rescan_tokenMethod · 0.95
jj_add_error_tokenMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected