Class SpelUtils

java.lang.Object
org.springframework.data.cassandra.util.SpelUtils

public class SpelUtils extends Object
Evaluates a SpEL expression.
Author:
Mark Paluch
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.springframework.expression.spel.standard.SpelExpressionParser
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    evaluate(CharSequence value, org.springframework.expression.EvaluationContext context)
    Evaluates the given value against the given context as a string.
    static <T> T
    evaluate(CharSequence value, org.springframework.expression.EvaluationContext context, Class<T> clazz)
    Evaluates the given value against the given context as an object of the given class.
    static <T> T
    evaluate(CharSequence value, org.springframework.expression.EvaluationContext context, Class<T> clazz, org.springframework.expression.ExpressionParser parser)
    Evaluates the given value against the given context as an object of the given class using the given parser.
    static String
    evaluate(CharSequence value, org.springframework.expression.EvaluationContext context, org.springframework.expression.ExpressionParser parser)
    Evaluates the given value against the given context as a string using the given parser.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_PARSER

      public static final org.springframework.expression.spel.standard.SpelExpressionParser DEFAULT_PARSER
  • Constructor Details

    • SpelUtils

      public SpelUtils()
  • Method Details

    • evaluate

      @Nullable public static String evaluate(CharSequence value, org.springframework.expression.EvaluationContext context)
      Evaluates the given value against the given context as a string.
    • evaluate

      @Nullable public static String evaluate(CharSequence value, org.springframework.expression.EvaluationContext context, org.springframework.expression.ExpressionParser parser)
      Evaluates the given value against the given context as a string using the given parser.
    • evaluate

      @Nullable public static <T> T evaluate(CharSequence value, org.springframework.expression.EvaluationContext context, Class<T> clazz)
      Evaluates the given value against the given context as an object of the given class.
    • evaluate

      @Nullable public static <T> T evaluate(CharSequence value, org.springframework.expression.EvaluationContext context, Class<T> clazz, org.springframework.expression.ExpressionParser parser)
      Evaluates the given value against the given context as an object of the given class using the given parser.