Skip until an EL expression ('${' || '#{') is reached, allowing escape sequences '\$' and '\#'. @return The text string up to the EL expression
()
| 194 | * @return The text string up to the EL expression |
| 195 | */ |
| 196 | private String skipUntilEL() { |
| 197 | StringBuilder buf = new StringBuilder(); |
| 198 | while (hasNextChar()) { |
| 199 | char ch = nextChar(); |
| 200 | if (ch == '\\') { |
| 201 | // Is this the start of a "\$" or "\#" escape sequence? |
| 202 | char p0 = peek(0); |
| 203 | if (p0 == '$' || (p0 == '#' && !isDeferredSyntaxAllowedAsLiteral)) { |
| 204 | buf.append(nextChar()); |
| 205 | } else { |
| 206 | buf.append(ch); |
| 207 | } |
| 208 | } else if ((ch == '$' || (ch == '#' && !isDeferredSyntaxAllowedAsLiteral)) && peek(0) == '{') { |
| 209 | this.type = ch; |
| 210 | nextChar(); |
| 211 | break; |
| 212 | } else { |
| 213 | buf.append(ch); |
| 214 | } |
| 215 | } |
| 216 | return buf.toString(); |
| 217 | } |
| 218 | |
| 219 | |
| 220 | /** |