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()
ParserContext
getEvaluationContextType
in interface ParserContext
public java.lang.Class getExpectedEvaluationResultType()
ParserContext
getExpectedEvaluationResultType
in interface ParserContext
public ExpressionVariable[] getExpressionVariables()
ParserContext
getExpressionVariables
in interface ParserContext
public boolean isTemplate()
ParserContext
Some literal text Hello #{name.firstName}! #{3 + 4}
isTemplate
in interface ParserContext