public final class NullParserContext extends java.lang.Object implements ParserContext
null is passed in as a parser context value.| Modifier and Type | Field and Description |
|---|---|
static ParserContext |
INSTANCE
The null parser context object instance; a singleton.
|
| 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 static final ParserContext INSTANCE
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