public final class SimpleParserContext extends java.lang.Object implements ParserContext
ParserContext for use in data binding scenarios, providing
ExpressionParser
implementations with a hint that they can meaningfully restrict the EL feature set.
Specifically designed for use with the Spring EL
SimpleEvaluationContext.| Constructor and Description |
|---|
SimpleParserContext(java.lang.Class<?> evaluationContextType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getEvaluationContextType()
Returns the type of context object the parsed expression will evaluate in.
|
java.lang.Class<?> |
getExpectedEvaluationResultType()
Returns the expected type of object returned from evaluating the parsed expression.
|
ExpressionVariable[] |
getExpressionVariables()
Returns additional expression variables or aliases that can be referenced during expression evaluation.
|
boolean |
isTemplate()
Whether or not the expression being parsed is a template.
|
public SimpleParserContext(java.lang.Class<?> evaluationContextType)
public java.lang.Class<?> getEvaluationContextType()
ParserContextgetEvaluationContextType in interface ParserContextpublic java.lang.Class<?> getExpectedEvaluationResultType()
ParserContextgetExpectedEvaluationResultType in interface ParserContextpublic ExpressionVariable[] getExpressionVariables()
ParserContextgetExpressionVariables in interface ParserContextpublic boolean isTemplate()
ParserContext
Some literal text
Hello #{name.firstName}!
#{3 + 4}
isTemplate in interface ParserContext