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.
Version:
$Id: $Id
Author:
joseph
  • 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
    resolveExpression(String expressionString, Object contextRoot)
    Runs the given expression against the given context object and returns the result of the evaluated expression.

    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:
      spelParserConfiguration - the configuration for the SpEL parser.
      standardEvaluationContext - a StandardEvaluationContext object
  • Method Details

    • resolveExpression

      public Object resolveExpression(String expressionString, Object contextRoot)
      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.