| Modifier and Type | Field and Description |
|---|---|
| public static final ParserContext | TEMPLATE_EXPRESSION
The default ParserContext implementation that enables template expression parsing mode. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the prefix that identifies the start of an expressionFor template expressions, returns the prefix that identifies the start of an expression block within a string. |
| public String | Returns: the suffix that identifies the end of an expressionFor template expressions, return the prefix that identifies the end of an expression block within a string. |
| public boolean | Returns: true if the expression is a template, false otherwiseWhether the expression being parsed is a template. |
| TEMPLATE_EXPRESSION | back to summary |
|---|---|
| public static final ParserContext TEMPLATE_EXPRESSION The default ParserContext implementation that enables template expression parsing mode. The expression prefix is "#{" and the expression suffix is "}".
| |
| getExpressionPrefix | back to summary |
|---|---|
| public String getExpressionPrefix() For template expressions, returns the prefix that identifies the start of an expression block within a string. For example: "${"
| |
| getExpressionSuffix | back to summary |
|---|---|
| public String getExpressionSuffix() For template expressions, return the prefix that identifies the end of an expression block within a string. For example: "}"
| |
| isTemplate | back to summary |
|---|---|
| public boolean isTemplate() Whether the expression being parsed is a template. A template consists of literal text that can be mixed with expressions. Some examples:
Some literal text
Hello #{name.firstName}!
#{3 + 4}
| |