Package com.aspectran.core.context.expr
Interface ExpressionEvaluator
- All Known Implementing Classes:
BooleanExpression
,ExpressionEvaluation
public interface ExpressionEvaluator
The Expression Evaluator.
Created: 2021/01/31
- Since:
- 6.11.0
-
Method Summary
Modifier and TypeMethodDescription<V> V
Evaluates an expression.<V> V
evaluate
(TokenEvaluator tokenEvaluator, Class<V> resultType) Evaluates an expression.static Object
Evaluates an expression.static <V> V
Evaluates an expression.static Object
evaluate
(String expression, TokenEvaluator tokenEvaluator) Evaluates an expression.static <V> V
evaluate
(String expression, TokenEvaluator tokenEvaluator, Class<V> resultType) Evaluates an expression.
-
Method Details
-
evaluate
Evaluates an expression.- Type Parameters:
V
- the type of the result- Parameters:
activity
- the aspectran activityresultType
- the expected type of the result of the evaluation- Returns:
- the result of the expression evaluation
-
evaluate
Evaluates an expression.- Type Parameters:
V
- the type of the result- Parameters:
tokenEvaluator
- the token evaluatorresultType
- the expected type of the result of the evaluation- Returns:
- the result of the expression evaluation.
-
evaluate
Evaluates an expression.- Parameters:
expression
- the expression to be evaluatedactivity
- the aspectran activity- Returns:
- the result of the expression evaluation
- Throws:
ExpressionEvaluationException
- thrown when an error occurs during expression evaluation
-
evaluate
Evaluates an expression.- Type Parameters:
V
- the type of the result- Parameters:
expression
- the expression to be evaluatedactivity
- the aspectran activityresultType
- the expected type of the result of the evaluation- Returns:
- the result of the expression evaluation
- Throws:
ExpressionEvaluationException
- thrown when an error occurs during expression evaluation
-
evaluate
Evaluates an expression.- Parameters:
expression
- the expression to be evaluatedtokenEvaluator
- the token evaluator- Returns:
- the result of the expression evaluation
- Throws:
ExpressionEvaluationException
- thrown when an error occurs during expression evaluation
-
evaluate
Evaluates an expression.- Type Parameters:
V
- the type of the result- Parameters:
expression
- the expression to be evaluatedtokenEvaluator
- the token evaluatorresultType
- the expected type of the result of the evaluation- Returns:
- the result of the expression evaluation
- Throws:
ExpressionEvaluationException
- thrown when an error occurs during expression evaluation
-