接口的使用
org.springframework.expression.PropertyAccessor
使用PropertyAccessor的程序包 程序包 说明 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.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中PropertyAccessor的使用
实现PropertyAccessor的org.springframework.context.expression中的类 修饰符和类型 类 说明 class
BeanExpressionContextAccessor
EL property accessor that knows how to traverse the beans and contextual objects of a SpringBeanExpressionContext
.class
BeanFactoryAccessor
EL property accessor that knows how to traverse the beans of a SpringBeanFactory
.class
EnvironmentAccessor
Read-only EL property accessor that knows how to retrieve keys of a SpringEnvironment
instance.class
MapAccessor
EL property accessor that knows how to traverse the keys of a standardMap
.org.springframework.expression中PropertyAccessor的使用
返回变量类型为PropertyAccessor的类型的org.springframework.expression中的方法 修饰符和类型 方法 说明 List<PropertyAccessor>
EvaluationContext. getPropertyAccessors()
Return a list of accessors that will be asked in turn to read/write a property.org.springframework.expression.spel中PropertyAccessor的使用
org.springframework.expression.spel中PropertyAccessor的子接口 修饰符和类型 接口 说明 interface
CompilablePropertyAccessor
A compilable property accessor is able to generate bytecode that represents the access operation, facilitating compilation to bytecode of expressions that use the accessor.返回变量类型为PropertyAccessor的类型的org.springframework.expression.spel中的方法 修饰符和类型 方法 说明 List<PropertyAccessor>
ExpressionState. getPropertyAccessors()
org.springframework.expression.spel.ast中PropertyAccessor的使用
返回变量类型为PropertyAccessor的类型的org.springframework.expression.spel.ast中的方法 修饰符和类型 方法 说明 static List<PropertyAccessor>
AstUtils. getPropertyAccessorsToTry(Class<?> targetType, List<PropertyAccessor> propertyAccessors)
Determines the set of property resolvers that should be used to try and access a property on the specified target type.类型变量类型为PropertyAccessor的org.springframework.expression.spel.ast中的方法参数 修饰符和类型 方法 说明 static List<PropertyAccessor>
AstUtils. getPropertyAccessorsToTry(Class<?> targetType, List<PropertyAccessor> propertyAccessors)
Determines the set of property resolvers that should be used to try and access a property on the specified target type.org.springframework.expression.spel.support中PropertyAccessor的使用
实现PropertyAccessor的org.springframework.expression.spel.support中的类 修饰符和类型 类 说明 class
DataBindingPropertyAccessor
APropertyAccessor
variant for data binding purposes, using reflection to access properties for reading and possibly writing.class
ReflectivePropertyAccessor
A powerfulPropertyAccessor
that uses reflection to access properties for reading and possibly also for writing on a target instance.static class
ReflectivePropertyAccessor.OptimalPropertyAccessor
An optimized form of a PropertyAccessor that will use reflection but only knows how to access a particular property on a particular class.返回PropertyAccessor的org.springframework.expression.spel.support中的方法 修饰符和类型 方法 说明 PropertyAccessor
ReflectivePropertyAccessor. createOptimalAccessor(EvaluationContext context, Object target, String name)
Attempt to create an optimized property accessor tailored for a property of a particular name on a particular class.返回变量类型为PropertyAccessor的类型的org.springframework.expression.spel.support中的方法 修饰符和类型 方法 说明 List<PropertyAccessor>
SimpleEvaluationContext. getPropertyAccessors()
Return the specifiedPropertyAccessor
delegates, if any.List<PropertyAccessor>
StandardEvaluationContext. getPropertyAccessors()
参数类型为PropertyAccessor的org.springframework.expression.spel.support中的方法 修饰符和类型 方法 说明 void
StandardEvaluationContext. addPropertyAccessor(PropertyAccessor accessor)
static SimpleEvaluationContext.Builder
SimpleEvaluationContext. forPropertyAccessors(PropertyAccessor... accessors)
Create aSimpleEvaluationContext
for the specifiedPropertyAccessor
delegates: typically a customPropertyAccessor
specific to a use case (e.g. attribute resolution in a custom data structure), potentially combined with aDataBindingPropertyAccessor
if property dereferences are needed as well.boolean
StandardEvaluationContext. removePropertyAccessor(PropertyAccessor accessor)
类型变量类型为PropertyAccessor的org.springframework.expression.spel.support中的方法参数 修饰符和类型 方法 说明 void
StandardEvaluationContext. setPropertyAccessors(List<PropertyAccessor> propertyAccessors)
参数类型为PropertyAccessor的org.springframework.expression.spel.support中的构造器 构造器 说明 Builder(PropertyAccessor... accessors)