public abstract class CachedExpressionEvaluator
extends java.lang.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(java.util.Map<CachedExpressionEvaluator.ExpressionKey,Expression> cache,
AnnotatedElementKey elementKey,
java.lang.String expression)
Return the
Expression for the specified SpEL value |
protected ParameterNameDiscoverer |
getParameterNameDiscoverer()
Return a shared parameter name discoverer which caches data internally.
|
protected SpelExpressionParser |
getParser()
Return the
SpelExpressionParser to use. |
protected CachedExpressionEvaluator(SpelExpressionParser parser)
SpelExpressionParser
.protected CachedExpressionEvaluator()
SpelExpressionParser
.protected SpelExpressionParser getParser()
SpelExpressionParser
to use.protected ParameterNameDiscoverer getParameterNameDiscoverer()
protected Expression getExpression(java.util.Map<CachedExpressionEvaluator.ExpressionKey,Expression> cache, AnnotatedElementKey elementKey, java.lang.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