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

Method jj_add_error_token

java/org/apache/el/parser/ELParser.java:4159–4195  ·  view source on GitHub ↗
(int kind, int pos)

Source from the content-addressed store, hash-verified

4157 private int jj_endpos;
4158
4159 private void jj_add_error_token(int kind, int pos) {
4160 if (pos >= 100) {
4161 return;
4162 }
4163
4164 if (pos == jj_endpos + 1) {
4165 jj_lasttokens[jj_endpos++] = kind;
4166 } else if (jj_endpos != 0) {
4167 jj_expentry = new int[jj_endpos];
4168
4169 for (int i = 0; i < jj_endpos; i++) {
4170 jj_expentry[i] = jj_lasttokens[i];
4171 }
4172
4173 for (int[] oldentry : jj_expentries) {
4174 if (oldentry.length == jj_expentry.length) {
4175 boolean isMatched = true;
4176
4177 for (int i = 0; i < jj_expentry.length; i++) {
4178 if (oldentry[i] != jj_expentry[i]) {
4179 isMatched = false;
4180 break;
4181 }
4182
4183 }
4184 if (isMatched) {
4185 jj_expentries.add(jj_expentry);
4186 break;
4187 }
4188 }
4189 }
4190
4191 if (pos != 0) {
4192 jj_lasttokens[(jj_endpos = pos) - 1] = kind;
4193 }
4194 }
4195 }
4196
4197 /** Generate ParseException. */
4198 public ParseException generateParseException() {

Callers 2

jj_scan_tokenMethod · 0.95

Calls 1

addMethod · 0.65

Tested by

no test coverage detected