ParserContext implementation for template parsing. Expects the
expression prefix and suffix as constructor arguments.
| Access | Constructor and Description |
|---|---|
| public | TemplateParserContext()
Create a new TemplateParserContext with the default "#{" prefix and "}" suffix. |
| public | TemplateParserContext(String
the expression prefix to use expressionPrefix, String the expression suffix to use expressionSuffix)Create a new TemplateParserContext for the given prefix and suffix. |
| Modifier and Type | Method and Description |
|---|---|
| public final String | getExpressionPrefix()
Implements org. |
| public final String | getExpressionSuffix()
Implements org. |
| public final boolean | isTemplate()
Implements org. |
| expressionPrefix | back to summary |
|---|---|
| private final String expressionPrefix | |
| expressionSuffix | back to summary |
|---|---|
| private final String expressionSuffix | |
| TemplateParserContext | back to summary |
|---|---|
| public TemplateParserContext() Create a new TemplateParserContext with the default "#{" prefix and "}" suffix. | |
| TemplateParserContext | back to summary |
|---|---|
| public TemplateParserContext(String expressionPrefix, String expressionSuffix) Create a new TemplateParserContext for the given prefix and suffix. | |
| getExpressionPrefix | back to summary |
|---|---|
| public final String getExpressionPrefix() Implements org. Doc from org. For template expressions, returns the prefix that identifies the start of an expression block within a string. For example: "${" | |
| getExpressionSuffix | back to summary |
|---|---|
| public final String getExpressionSuffix() Implements org. Doc from org. For template expressions, return the prefix that identifies the end of an expression block within a string. For example: "}" | |
| isTemplate | back to summary |
|---|---|
| public final boolean isTemplate() Implements org. Doc from org. 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}
| |