Test if an id is a reserved word in EL
(String id)
| 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 '\#'. |
no test coverage detected