| 程序包 | 说明 |
|---|---|
| org.springframework.expression |
Core abstractions behind the Spring Expression Language.
|
| org.springframework.expression.common |
Common utility classes behind the Spring Expression Language.
|
| org.springframework.expression.spel |
SpEL's central implementation package.
|
| org.springframework.expression.spel.ast |
SpEL's abstract syntax tree.
|
| org.springframework.expression.spel.support |
SpEL's default implementations for various core abstractions.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static TypedValue |
TypedValue.NULL |
| 限定符和类型 | 方法和说明 |
|---|---|
TypedValue |
ConstructorExecutor.execute(EvaluationContext context,
Object... arguments)
Execute a constructor in the specified context using the specified arguments.
|
TypedValue |
MethodExecutor.execute(EvaluationContext context,
Object target,
Object... arguments)
Execute a command using the specified arguments, and using the specified expression state.
|
TypedValue |
EvaluationContext.getRootObject()
Return the default root context object against which unqualified
properties/methods/etc should be resolved.
|
TypedValue |
PropertyAccessor.read(EvaluationContext context,
Object target,
String name)
Called to read a property from a specified target object.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
ExpressionUtils.convertTypedValue(EvaluationContext context,
TypedValue typedValue,
Class<T> targetType)
Determines if there is a type converter available in the specified context and
attempts to use it to convert the supplied value to the specified type.
|
static boolean |
ExpressionUtils.toBoolean(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a boolean using the supplied type converter.
|
static byte |
ExpressionUtils.toByte(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a byte using the supplied type converter.
|
static char |
ExpressionUtils.toChar(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a char using the supplied type converter.
|
static double |
ExpressionUtils.toDouble(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a double using the supplied type converter.
|
static float |
ExpressionUtils.toFloat(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a float using the supplied type converter.
|
static int |
ExpressionUtils.toInt(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to an int using the supplied type converter.
|
static long |
ExpressionUtils.toLong(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a long using the supplied type converter.
|
static short |
ExpressionUtils.toShort(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a short using the supplied type converter.
|
| 限定符和类型 | 方法和说明 |
|---|---|
TypedValue |
ExpressionState.getActiveContextObject()
The active context object is what unqualified references to properties/etc are resolved against.
|
TypedValue |
ExpressionState.getRootContextObject() |
TypedValue |
ExpressionState.getScopeRootContextObject() |
TypedValue |
SpelNode.getTypedValue(ExpressionState expressionState)
Evaluate the expression node in the context of the supplied expression state
and return the typed value.
|
TypedValue |
ExpressionState.lookupVariable(String name) |
TypedValue |
ExpressionState.operate(Operation op,
Object left,
Object right) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
ExpressionState.convertValue(TypedValue value,
org.springframework.core.convert.TypeDescriptor targetTypeDescriptor) |
void |
ExpressionState.pushActiveContextObject(TypedValue obj) |
| 构造器和说明 |
|---|
ExpressionState(EvaluationContext context,
TypedValue rootObject) |
ExpressionState(EvaluationContext context,
TypedValue rootObject,
SpelParserConfiguration configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
PropertyOrFieldReference.isWritableProperty(String name,
TypedValue contextObject,
EvaluationContext evalContext) |
| 构造器和说明 |
|---|
TypedValueHolderValueRef(TypedValue typedValue,
SpelNodeImpl node) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
BooleanTypedValue |
| 限定符和类型 | 方法和说明 |
|---|---|
TypedValue |
ReflectiveConstructorExecutor.execute(EvaluationContext context,
Object... arguments) |
TypedValue |
ReflectiveMethodExecutor.execute(EvaluationContext context,
Object target,
Object... arguments) |
TypedValue |
SimpleEvaluationContext.getRootObject()
Return the specified root object, if any.
|
TypedValue |
StandardEvaluationContext.getRootObject() |
TypedValue |
ReflectivePropertyAccessor.read(EvaluationContext context,
Object target,
String name) |
TypedValue |
ReflectivePropertyAccessor.OptimalPropertyAccessor.read(EvaluationContext context,
Object target,
String name) |