public interface Expression
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ExpressionVisitor visitor)
Implements visitor pattern.
|
Type |
getReturnType()
Gets the return type of the expression.
|
ValueObject |
getValue()
Executes and returns the value of this expression.
|
void |
initialize(ExpressionContext expressionContext,
Object parameters,
boolean validate)
This is used to initialize the expression.
|
void |
uninitialize(ExpressionContext expressionContext)
This is used to un-initialize the expression, so that expression can be
reused.
|
ValueObject getValue() throws ExpressionEngineException
ExpressionEngineException - if there is any problem during executionType getReturnType() throws ExpressionEngineException
ExpressionEngineException - If there is any problem during executionvoid initialize(ExpressionContext expressionContext, Object parameters, boolean validate) throws ExpressionEngineException
expressionContext - contextual information, may help in
initializationparameters - for example, sub expressions and identifiersExpressionEngineException - if there is any problem during executionvoid uninitialize(ExpressionContext expressionContext)
expressionContext - contextual information, may help in
un-initializationvoid accept(ExpressionVisitor visitor)
visitor - a visitor object that this expression must visit when accept is called.