类的使用
org.springframework.expression.TypedValue
使用TypedValue的程序包 程序包 说明 org.springframework.context.expression Expression parsing support within a Spring application context.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.org.springframework.context.expression中TypedValue的使用
返回TypedValue的org.springframework.context.expression中的方法 修饰符和类型 方法 说明 TypedValue
BeanExpressionContextAccessor. read(EvaluationContext context, Object target, String name)
TypedValue
BeanFactoryAccessor. read(EvaluationContext context, Object target, String name)
TypedValue
EnvironmentAccessor. read(EvaluationContext context, Object target, String name)
Access the given target object by resolving the given property name against the given target environment.TypedValue
MapAccessor. read(EvaluationContext context, Object target, String name)
org.springframework.expression中TypedValue的使用
声明为TypedValue的org.springframework.expression中的字段 修饰符和类型 字段 说明 static TypedValue
TypedValue. NULL
TypedValue
fornull
.返回TypedValue的org.springframework.expression中的方法 修饰符和类型 方法 说明 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.org.springframework.expression.common中TypedValue的使用
参数类型为TypedValue的org.springframework.expression.common中的方法 修饰符和类型 方法 说明 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.org.springframework.expression.spel中TypedValue的使用
返回TypedValue的org.springframework.expression.spel中的方法 修饰符和类型 方法 说明 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)
参数类型为TypedValue的org.springframework.expression.spel中的方法 修饰符和类型 方法 说明 Object
ExpressionState. convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor)
void
ExpressionState. pushActiveContextObject(TypedValue obj)
参数类型为TypedValue的org.springframework.expression.spel中的构造器 构造器 说明 ExpressionState(EvaluationContext context, TypedValue rootObject)
ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration)
org.springframework.expression.spel.ast中TypedValue的使用
参数类型为TypedValue的org.springframework.expression.spel.ast中的方法 修饰符和类型 方法 说明 boolean
PropertyOrFieldReference. isWritableProperty(String name, TypedValue contextObject, EvaluationContext evalContext)
参数类型为TypedValue的org.springframework.expression.spel.ast中的构造器 构造器 说明 TypedValueHolderValueRef(TypedValue typedValue, SpelNodeImpl node)
org.springframework.expression.spel.support中TypedValue的使用
org.springframework.expression.spel.support中TypedValue的子类 修饰符和类型 类 说明 class
BooleanTypedValue
ATypedValue
for booleans.返回TypedValue的org.springframework.expression.spel.support中的方法 修饰符和类型 方法 说明 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.OptimalPropertyAccessor. read(EvaluationContext context, Object target, String name)
TypedValue
ReflectivePropertyAccessor. read(EvaluationContext context, Object target, String name)