接口的使用
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中的类 修饰符和类型 类 说明 classBeanExpressionContextAccessorEL property accessor that knows how to traverse the beans and contextual objects of a SpringBeanExpressionContext.classBeanFactoryAccessorEL property accessor that knows how to traverse the beans of a SpringBeanFactory.classEnvironmentAccessorRead-only EL property accessor that knows how to retrieve keys of a SpringEnvironmentinstance.classMapAccessorEL 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的子接口 修饰符和类型 接口 说明 interfaceCompilablePropertyAccessorA 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中的类 修饰符和类型 类 说明 classDataBindingPropertyAccessorAPropertyAccessorvariant for data binding purposes, using reflection to access properties for reading and possibly writing.classReflectivePropertyAccessorA powerfulPropertyAccessorthat uses reflection to access properties for reading and possibly also for writing on a target instance.static classReflectivePropertyAccessor.OptimalPropertyAccessorAn 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中的方法 修饰符和类型 方法 说明 PropertyAccessorReflectivePropertyAccessor. 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 specifiedPropertyAccessordelegates, if any.List<PropertyAccessor>StandardEvaluationContext. getPropertyAccessors()参数类型为PropertyAccessor的org.springframework.expression.spel.support中的方法 修饰符和类型 方法 说明 voidStandardEvaluationContext. addPropertyAccessor(PropertyAccessor accessor)static SimpleEvaluationContext.BuilderSimpleEvaluationContext. forPropertyAccessors(PropertyAccessor... accessors)Create aSimpleEvaluationContextfor the specifiedPropertyAccessordelegates: typically a customPropertyAccessorspecific to a use case (e.g. attribute resolution in a custom data structure), potentially combined with aDataBindingPropertyAccessorif property dereferences are needed as well.booleanStandardEvaluationContext. removePropertyAccessor(PropertyAccessor accessor)类型变量类型为PropertyAccessor的org.springframework.expression.spel.support中的方法参数 修饰符和类型 方法 说明 voidStandardEvaluationContext. setPropertyAccessors(List<PropertyAccessor> propertyAccessors)参数类型为PropertyAccessor的org.springframework.expression.spel.support中的构造器 构造器 说明 Builder(PropertyAccessor... accessors)