public abstract class CachedExpressionEvaluator extends Object
AnnotatedElement.AnnotatedElementKey| Modifier and Type | Class and Description |
|---|---|
protected static class |
CachedExpressionEvaluator.ExpressionKey
An expression key.
|
| 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 ParameterNameDiscoverer |
getParameterNameDiscoverer()
Return a shared parameter name discoverer which caches data internally.
|
protected SpelExpressionParser |
getParser()
Return the
SpelExpressionParser to use. |
protected Expression |
parseExpression(String expression)
Parse the specified
expression. |
protected CachedExpressionEvaluator(SpelExpressionParser parser)
SpelExpressionParser.protected CachedExpressionEvaluator()
SpelExpressionParser.protected SpelExpressionParser getParser()
SpelExpressionParser to use.protected ParameterNameDiscoverer getParameterNameDiscoverer()
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 parseprotected Expression parseExpression(String expression)
expression.expression - the expression to parse