Package org.wickedsource.docxstamper.el
Class ExpressionResolver
java.lang.Object
org.wickedsource.docxstamper.el.ExpressionResolver
Resolves expressions against a given context object. Expressions can be either SpEL expressions or simple property
expressions.
- Version:
- $Id: $Id
- Author:
- joseph
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionResolver(org.springframework.expression.spel.support.StandardEvaluationContext standardEvaluationContext, org.springframework.expression.spel.SpelParserConfiguration spelParserConfiguration) Creates a new ExpressionResolver with the given SpEL parser configuration. -
Method Summary
Modifier and TypeMethodDescriptionresolveExpression(String expressionString, Object contextRoot) Runs the given expression against the given context object and returns the result of the evaluated expression.
-
Constructor Details
-
ExpressionResolver
public ExpressionResolver(org.springframework.expression.spel.support.StandardEvaluationContext standardEvaluationContext, org.springframework.expression.spel.SpelParserConfiguration spelParserConfiguration) Creates a new ExpressionResolver with the given SpEL parser configuration.- Parameters:
spelParserConfiguration- the configuration for the SpEL parser.standardEvaluationContext- aStandardEvaluationContextobject
-
-
Method Details
-
resolveExpression
Runs the given expression against the given context object and returns the result of the evaluated expression.- Parameters:
expressionString- the expression to evaluate.contextRoot- the context object against which the expression is evaluated.- Returns:
- the result of the evaluated expression.
-