public abstract class CachedExpressionEvaluator extends Object
AnnotatedElement
.AnnotatedElementKey
Modifier and Type | Class and Description |
---|---|
protected static class |
CachedExpressionEvaluator.ExpressionKey |
Modifier | Constructor and Description |
---|---|
protected |
CachedExpressionEvaluator()
Create a new instance with a default
SpelExpressionParser . |
protected |
CachedExpressionEvaluator(SpelExpressionParser parser)
Create a new instance with the specified
SpelExpressionParser . |
Modifier and Type | Method and Description |
---|---|
protected Expression |
getExpression(Map<CachedExpressionEvaluator.ExpressionKey,Expression> cache,
AnnotatedElementKey elementKey,
String expression)
Return the
Expression for the specified SpEL value |
protected SpelExpressionParser |
getParser()
Return the
SpelExpressionParser to use. |
protected CachedExpressionEvaluator(SpelExpressionParser parser)
SpelExpressionParser
.protected CachedExpressionEvaluator()
SpelExpressionParser
.protected SpelExpressionParser getParser()
SpelExpressionParser
to use.protected Expression getExpression(Map<CachedExpressionEvaluator.ExpressionKey,Expression> cache, AnnotatedElementKey elementKey, String expression)
Expression
for the specified SpEL value
Parse the expression if it hasn't been already.
cache
- the cache to useelementKey
- the element on which the expression is definedexpression
- the expression to parse