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.
- Since:
- 1.0.0
- Version:
- ${version}
- Author:
- Joseph Verron, Tom Hombergs
-
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 TypeMethodDescriptionresolve(Placeholder placeholder, Object contextRoot) Resolves the given expression against the provided context object.
-
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:
standardEvaluationContext- aStandardEvaluationContextobjectspelParserConfiguration- the configuration for the SpEL parser.
-
-
Method Details
-
resolve
Resolves the given expression against the provided context object.- Parameters:
placeholder- the expression to resolve.contextRoot- the context object against which to resolve the expression.- Returns:
- the resolved value of the expression.
-