public class ExpressionServiceImpl extends java.lang.Object implements ExpressionService
| Constructor and Description |
|---|
ExpressionServiceImpl(TechnicalLoggerService logger,
boolean checkExpressionReturnType,
TimeTracker timeTracker) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Object> |
evaluate(ExpressionKind expressionKind,
java.util.List<SExpression> expressions,
java.util.Map<java.lang.String,java.lang.Object> dependencyValues,
java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions,
ContainerState containerState)
Evaluate type specified expressions with dependency values
|
java.lang.Object |
evaluate(SExpression expression,
java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions,
ContainerState containerState)
Evaluate the specific expression
|
java.lang.Object |
evaluate(SExpression expression,
java.util.Map<java.lang.String,java.lang.Object> dependencyValues,
java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions,
ContainerState containerState)
Evaluate the specific expression with dependency values
|
boolean |
mustCheckExpressionReturnType()
Should we throw exception if the real return type is incompatible with the declared one?
|
boolean |
mustPutEvaluatedExpressionInContext(ExpressionKind expressionKind)
Should an expression result of a specified
ExpressionKind must be put in the evaluation context? |
void |
setExpressionExecutorStrategy(java.util.List<ExpressionExecutorStrategy> expressionExecutors) |
public ExpressionServiceImpl(TechnicalLoggerService logger, boolean checkExpressionReturnType, TimeTracker timeTracker)
public void setExpressionExecutorStrategy(java.util.List<ExpressionExecutorStrategy> expressionExecutors)
setExpressionExecutorStrategy in interface ExpressionServicepublic java.lang.Object evaluate(SExpression expression, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionException
ExpressionServiceevaluate in interface ExpressionServiceexpression - the expression will be evaluatedSExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionExceptionpublic java.lang.Object evaluate(SExpression expression, java.util.Map<java.lang.String,java.lang.Object> dependencyValues, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionException
ExpressionServiceevaluate in interface ExpressionServiceexpression - the expression will be evaluateddependencyValues - the dependency values, it may contain values for expressionSExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionExceptionpublic java.util.List<java.lang.Object> evaluate(ExpressionKind expressionKind, java.util.List<SExpression> expressions, java.util.Map<java.lang.String,java.lang.Object> dependencyValues, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException
ExpressionServiceevaluate in interface ExpressionServiceexpressionKind - the expression kind to indicate which type of ExpressionExecutorStrategy will be used to evaluate the expressionsexpressions - a list of expressions to be evaluateddependencyValues - the dependency values for the expressions, it may contain value informations for expressionsSExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionpublic boolean mustCheckExpressionReturnType()
ExpressionServicemustCheckExpressionReturnType in interface ExpressionServicepublic boolean mustPutEvaluatedExpressionInContext(ExpressionKind expressionKind)
ExpressionServiceExpressionKind must be put in the evaluation context?mustPutEvaluatedExpressionInContext in interface ExpressionServiceexpressionKind - the ExpressionKind