public class ExpressionServiceImpl extends Object implements ExpressionService
| Constructor and Description |
|---|
ExpressionServiceImpl(TechnicalLoggerService logger,
boolean checkExpressionReturnType,
TimeTracker timeTracker) |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
evaluate(ExpressionKind expressionKind,
List<SExpression> expressions,
Map<String,Object> dependencyValues,
Map<Integer,Object> resolvedExpressions,
ContainerState containerState)
Evaluate type specified expressions with dependency values
|
Object |
evaluate(SExpression expression,
Map<Integer,Object> resolvedExpressions,
ContainerState containerState)
Evaluate the specific expression
|
Object |
evaluate(SExpression expression,
Map<String,Object> dependencyValues,
Map<Integer,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(List<ExpressionExecutorStrategy> expressionExecutors) |
public ExpressionServiceImpl(TechnicalLoggerService logger, boolean checkExpressionReturnType, TimeTracker timeTracker)
public void setExpressionExecutorStrategy(List<ExpressionExecutorStrategy> expressionExecutors)
setExpressionExecutorStrategy in interface ExpressionServicepublic Object evaluate(SExpression expression, Map<Integer,Object> resolvedExpressions, ContainerState containerState) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionException
ExpressionServiceevaluate in interface ExpressionServiceexpression - the expression will be evaluatedSExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionExceptionpublic Object evaluate(SExpression expression, Map<String,Object> dependencyValues, Map<Integer,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 List<Object> evaluate(ExpressionKind expressionKind, List<SExpression> expressions, Map<String,Object> dependencyValues, Map<Integer,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 ExpressionKindCopyright © 2019 Bonitasoft S.A.. All rights reserved.