public interface Evaluator<PreprocessedInfo>
Evaluator.Registration
for the desired language.Modifier and Type | Interface and Description |
---|---|
static class |
Evaluator.Context
Context of the evaluation.
|
static class |
Evaluator.Expression<PreprocessedInfo>
Representation of an expression that is a subject of evaluation.
|
static interface |
Evaluator.Registration
Declarative registration of Evaluator implementation.
|
static class |
Evaluator.Result
Evaluation result.
|
Modifier and Type | Method and Description |
---|---|
Evaluator.Result |
evaluate(Evaluator.Expression<PreprocessedInfo> expression,
Evaluator.Context context)
Evaluates given expression and provide the result.
|
Evaluator.Result evaluate(Evaluator.Expression<PreprocessedInfo> expression, Evaluator.Context context) throws InvalidExpressionException
expression
- the expression to be evaluatedcontext
- the context in which the expression is evaluatedInvalidExpressionException
- when the expression is invalid or other
error occurs during the evaluation process.