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
-
Method Summary
Modifier and TypeMethodDescriptionstatic Expression
detectExpression
(String potentialExpression) Returns a SpELExpression
if the givenString
is actually an expression that does not evaluate to aLiteralExpression
(indicating that no subsequent evaluation is necessary).static Object
evaluate
(String value, Supplier<EvaluationContext> evaluationContext)
-
Constructor Details
-
ExpressionUtils
public ExpressionUtils()
-
-
Method Details
-
detectExpression
Returns a SpELExpression
if the givenString
is 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
@Nullable public static Object evaluate(String value, Supplier<EvaluationContext> evaluationContext)
-