|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.expression.common.TemplateParserContext
public class TemplateParserContext
Configurable ParserContext
implementation for template parsing.
Expects the expression prefix and suffix as constructor arguments.
Field Summary |
---|
Fields inherited from interface org.springframework.expression.ParserContext |
---|
TEMPLATE_EXPRESSION |
Constructor Summary | |
---|---|
TemplateParserContext()
Create a new TemplateParserContext with the default "#{" prefix and "}" suffix. |
|
TemplateParserContext(String expressionPrefix,
String expressionSuffix)
Create a new TemplateParserContext for the given prefix and suffix. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateParserContext()
public TemplateParserContext(String expressionPrefix, String expressionSuffix)
expressionPrefix
- the expression prefix to useexpressionSuffix
- the expression suffix to useMethod Detail |
---|
public final boolean isTemplate()
ParserContext
Some literal text Hello #{name.firstName}! #{3 + 4}
isTemplate
in interface ParserContext
public final String getExpressionPrefix()
ParserContext
getExpressionPrefix
in interface ParserContext
public final String getExpressionSuffix()
ParserContext
getExpressionSuffix
in interface ParserContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |