public interface ParserContext
| 限定符和类型 | 字段和说明 |
|---|---|
static ParserContext |
TEMPLATE_EXPRESSION
The default ParserContext implementation that enables template expression
parsing mode.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getExpressionPrefix()
For template expressions, returns the prefix that identifies the start of an
expression block within a string.
|
String |
getExpressionSuffix()
For template expressions, return the prefix that identifies the end of an
expression block within a string.
|
boolean |
isTemplate()
Whether or not the expression being parsed is a template.
|
static final ParserContext TEMPLATE_EXPRESSION
isTemplate()boolean isTemplate()
Some literal text
Hello #{name.firstName}!
#{3 + 4}
String getExpressionPrefix()
String getExpressionSuffix()