Class SpelUtils
java.lang.Object
org.springframework.data.cassandra.util.SpelUtils
Evaluates a SpEL expression.
- Author:
- Mark Paluch
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
evaluate
(CharSequence value, EvaluationContext context) Evaluates the given value against the given context as a string.static <T> T
evaluate
(CharSequence value, 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, EvaluationContext context, Class<T> clazz, 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, EvaluationContext context, ExpressionParser parser) Evaluates the given value against the given context as a string using the given parser.
-
Field Details
-
DEFAULT_PARSER
-
-
Constructor Details
-
SpelUtils
public SpelUtils()
-
-
Method Details
-
evaluate
Evaluates the given value against the given context as a string. -
evaluate
@Nullable public static String evaluate(CharSequence value, EvaluationContext context, 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, 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, EvaluationContext context, Class<T> clazz, ExpressionParser parser) Evaluates the given value against the given context as an object of the given class using the given parser.
-