()
| 328 | * @return The next token in the EL expression buffer. |
| 329 | */ |
| 330 | private Token nextToken() { |
| 331 | prevToken = curToken; |
| 332 | if (hasNextChar()) { |
| 333 | char ch = nextChar(); |
| 334 | if (Character.isJavaIdentifierStart(ch)) { |
| 335 | int start = index - 1; |
| 336 | while (index < expression.length() && Character.isJavaIdentifierPart(ch = expression.charAt(index))) { |
| 337 | nextChar(); |
| 338 | } |
| 339 | return new Id(getAndResetWhiteSpace(), expression.substring(start, index)); |
| 340 | } |
| 341 | |
| 342 | if (ch == '\'' || ch == '"') { |
| 343 | return parseQuotedChars(ch); |
| 344 | } else { |
| 345 | // For now... |
| 346 | return new Char(getAndResetWhiteSpace(), ch); |
| 347 | } |
| 348 | } |
| 349 | return null; |
| 350 | } |
| 351 | |
| 352 | /* |
| 353 | * Parse a string in single or double quotes, allowing for escape sequences '\\', '\"' and "\'" |
no test coverage detected