Class SpelEvaluator
java.lang.Object
org.springframework.data.repository.query.SpelEvaluator
Evaluates SpEL expressions as extracted by the
SpelQueryContext.SpelExtractor
based on parameter information from a method and
parameter values from a method call.- Since:
- 2.1
- Author:
- Jens Schauder, Gerrit Meier, Oliver Gierke
- See Also:
-
Constructor Summary
ConstructorDescriptionSpelEvaluator
(QueryMethodEvaluationContextProvider evaluationContextProvider, Parameters<?, ?> parameters, SpelQueryContext.SpelExtractor extractor) -
Method Summary
Modifier and TypeMethodDescriptionEvaluate all the SpEL expressions inSpelQueryContext.SpelExtractor
based on values provided as an argument.Returns the query string produced by the intermediate SpEL expression collection step.
-
Constructor Details
-
SpelEvaluator
public SpelEvaluator(QueryMethodEvaluationContextProvider evaluationContextProvider, Parameters<?, ?> parameters, SpelQueryContext.SpelExtractor extractor)
-
-
Method Details
-
evaluate
Evaluate all the SpEL expressions inSpelQueryContext.SpelExtractor
based on values provided as an argument.- Parameters:
values
- Parameter values. Must not be null.- Returns:
- a map from parameter name to evaluated value. Guaranteed to be not null.
-
getQueryString
Returns the query string produced by the intermediate SpEL expression collection step.- Returns:
-