Class ExpressionResolver

java.lang.Object
org.wickedsource.docxstamper.el.ExpressionResolver

public class ExpressionResolver extends Object
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

    Constructors
    Constructor
    Description
    ExpressionResolver(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 Type
    Method
    Description
    resolve(Placeholder placeholder, Object contextRoot)
    Resolves the given expression against the provided context object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - a StandardEvaluationContext object
      spelParserConfiguration - the configuration for the SpEL parser.
  • Method Details

    • resolve

      public Object resolve(Placeholder placeholder, Object contextRoot)
      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.