Interface BroadleafExpressionParser

All Known Implementing Classes:
BroadleafExpressionParserImpl

public interface BroadleafExpressionParser
This component provides an expression parser, most typically for SPEL expressions.
Author:
Nick Crum ncrum
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    parseExpression(String expressionString, Map<String,Object> context)
    Parses the given expression string with the given context and returns the parsed result string.
    <T> T
    parseExpression(String expressionString, Map<String,Object> context, Class<T> targetType)
    Parses the given expression string with the given context and returns the parsed result with the target type.
  • Method Details

    • parseExpression

      String parseExpression(String expressionString, Map<String,Object> context)
      Parses the given expression string with the given context and returns the parsed result string.
      Parameters:
      expressionString - the expression string
      context - the context
      Returns:
      the parsed expression result
    • parseExpression

      <T> T parseExpression(String expressionString, Map<String,Object> context, Class<T> targetType)
      Parses the given expression string with the given context and returns the parsed result with the target type.
      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