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

Method isELReserved

java/org/apache/jasper/compiler/ELParser.java:173–189  ·  view source on GitHub ↗

Test if an id is a reserved word in EL

(String id)

Source from the content-addressed store, hash-verified

171 * Test if an id is a reserved word in EL
172 */
173 private boolean isELReserved(String id) {
174 int i = 0;
175 int j = reservedWords.length;
176 while (i < j) {
177 int k = (i + j) >>> 1;
178 int result = reservedWords[k].compareTo(id);
179 if (result == 0) {
180 return true;
181 }
182 if (result < 0) {
183 i = k + 1;
184 } else {
185 j = k;
186 }
187 }
188 return false;
189 }
190
191 /**
192 * Skip until an EL expression ('${' || '#{') is reached, allowing escape sequences '\$' and '\#'.

Callers 1

parseFunctionMethod · 0.95

Calls 1

compareToMethod · 0.65

Tested by

no test coverage detected