Class ExpressionUtils
java.lang.Object
org.springframework.data.mongodb.util.spel.ExpressionUtils
Internal utility class for dealing with
Expression and potential ones.- Since:
- 3.3
- Author:
- Christoph Strobl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ExpressiondetectExpression(@Nullable String potentialExpression) Returns a SpELExpressionif the givenStringis actually an expression that does not evaluate to aLiteralExpression(indicating that no subsequent evaluation is necessary).static @Nullable Objectevaluate(String value, Supplier<EvaluationContext> evaluationContext)
-
Constructor Details
-
ExpressionUtils
public ExpressionUtils()
-
-
Method Details
-
detectExpression
Returns a SpELExpressionif the givenStringis actually an expression that does not evaluate to aLiteralExpression(indicating that no subsequent evaluation is necessary).- Parameters:
potentialExpression- can be null- Returns:
- can be null.
-
evaluate
public static @Nullable Object evaluate(String value, Supplier<EvaluationContext> evaluationContext)
-