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 org.springframework.expression.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<org.springframework.expression.EvaluationContext> evaluationContext)
-
Constructor Details
-
ExpressionUtils
public ExpressionUtils()
-
-
Method Details
-
detectExpression
@Nullable public static org.springframework.expression.Expression detectExpression(@Nullable 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).- Parameters:
potentialExpression
- can be null- Returns:
- can be null.
-
evaluate
-