Class BroadleafExpressionParserImpl

java.lang.Object
org.broadleafcommerce.common.expression.BroadleafExpressionParserImpl
All Implemented Interfaces:
BroadleafExpressionParser

@Component("blExpressionParser") public class BroadleafExpressionParserImpl extends Object implements BroadleafExpressionParser
Author:
Nick Crum ncrum
  • Field Details

    • parser

      protected final org.springframework.expression.ExpressionParser parser
    • propertyAccessors

      protected final List<org.springframework.expression.PropertyAccessor> propertyAccessors
  • Constructor Details

    • BroadleafExpressionParserImpl

      public BroadleafExpressionParserImpl()
  • Method Details

    • parseExpression

      public String parseExpression(String expressionString, Map<String,Object> context)
      Description copied from interface: BroadleafExpressionParser
      Parses the given expression string with the given context and returns the parsed result string.
      Specified by:
      parseExpression in interface BroadleafExpressionParser
      Parameters:
      expressionString - the expression string
      context - the context
      Returns:
      the parsed expression result
    • parseExpression

      public <T> T parseExpression(String expressionString, Map<String,Object> context, Class<T> targetType)
      Description copied from interface: BroadleafExpressionParser
      Parses the given expression string with the given context and returns the parsed result with the target type.
      Specified by:
      parseExpression in interface BroadleafExpressionParser
      Type Parameters:
      T - the generic type of the result
      Parameters:
      expressionString - the expression string
      context - the context
      targetType - the target type for the result
      Returns:
      the parsed expression result
    • getParserContext

      protected org.springframework.expression.ParserContext getParserContext()
    • getPropertyAccessors

      protected List<org.springframework.expression.PropertyAccessor> getPropertyAccessors()
    • createStandardEvaluationContext

      protected org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext(Map<String,Object> context)
    • getExpressionParser

      protected org.springframework.expression.ExpressionParser getExpressionParser()
      Returns:
      the current expression parser