class ExpressionEvaluator
extends java.lang.Object
Performs internal caching for performance reasons.
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Expression> |
conditionCache |
private java.util.Map<java.lang.String,Expression> |
keyCache |
private ParameterNameDiscoverer |
paramNameDiscoverer |
private SpelExpressionParser |
parser |
private java.util.Map<java.lang.String,java.lang.reflect.Method> |
targetMethodCache |
Constructor and Description |
---|
ExpressionEvaluator() |
Modifier and Type | Method and Description |
---|---|
boolean |
condition(java.lang.String conditionExpression,
java.lang.reflect.Method method,
EvaluationContext evalContext) |
EvaluationContext |
createEvaluationContext(java.util.Collection<Cache> caches,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object target,
java.lang.Class<?> targetClass) |
java.lang.Object |
key(java.lang.String keyExpression,
java.lang.reflect.Method method,
EvaluationContext evalContext) |
private java.lang.String |
toString(java.lang.reflect.Method method,
java.lang.String expression) |
private SpelExpressionParser parser
private ParameterNameDiscoverer paramNameDiscoverer
private java.util.Map<java.lang.String,Expression> conditionCache
private java.util.Map<java.lang.String,Expression> keyCache
private java.util.Map<java.lang.String,java.lang.reflect.Method> targetMethodCache
public EvaluationContext createEvaluationContext(java.util.Collection<Cache> caches, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target, java.lang.Class<?> targetClass)
public boolean condition(java.lang.String conditionExpression, java.lang.reflect.Method method, EvaluationContext evalContext)
public java.lang.Object key(java.lang.String keyExpression, java.lang.reflect.Method method, EvaluationContext evalContext)
private java.lang.String toString(java.lang.reflect.Method method, java.lang.String expression)