类 Operator.DescriptorComparison
- java.lang.Object
- org.springframework.expression.spel.ast.Operator.DescriptorComparison
- 封闭类:
- Operator
protected static class Operator.DescriptorComparison extends Object
A descriptor comparison encapsulates the result of comparing descriptor for two operands and describes at what level they are compatible.
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static Operator.DescriptorComparison
checkNumericCompatibility(String leftDeclaredDescriptor, String rightDeclaredDescriptor, String leftActualDescriptor, String rightActualDescriptor)
Return an object that indicates whether the input descriptors are compatible.
方法详细资料
checkNumericCompatibility
public static Operator.DescriptorComparison checkNumericCompatibility(String leftDeclaredDescriptor, String rightDeclaredDescriptor, String leftActualDescriptor, String rightActualDescriptor)
Return an object that indicates whether the input descriptors are compatible.A declared descriptor is what could statically be determined (e.g. from looking at the return value of a property accessor method) whilst an actual descriptor is the type of an actual object that was returned, which may differ.
For generic types with unbound type variables, the declared descriptor discovered may be 'Object' but from the actual descriptor it is possible to observe that the objects are really numeric values (e.g. ints).
- 参数:
leftDeclaredDescriptor
- the statically determinable left descriptorrightDeclaredDescriptor
- the statically determinable right descriptorleftActualDescriptor
- the dynamic/runtime left object descriptorrightActualDescriptor
- the dynamic/runtime right object descriptor- 返回:
- a DescriptorComparison object indicating the type of compatibility, if any