类 AstUtils
java.lang.Object
cn.taketoday.expression.spel.ast.AstUtils
Utilities methods for use in the Ast classes.
- 从以下版本开始:
- 4.0
- 作者:
- Andy Clement
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static List<PropertyAccessor>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.
-
构造器详细资料
-
AstUtils
public AstUtils()
-
-
方法详细资料
-
getPropertyAccessorsToTry
public static List<PropertyAccessor> getPropertyAccessorsToTry(@Nullable 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. The resolvers are considered to be in an ordered list, however in the returned list any that are exact matches for the input target type (as opposed to 'general' resolvers that could work for any type) are placed at the start of the list. In addition, there are specific resolvers that exactly name the class in question and resolvers that name a specific class but it is a supertype of the class we have. These are put at the end of the specific resolvers set and will be tried after exactly matching accessors but before generic accessors.- 参数:
targetType- the type upon which property access is being attempted- 返回:
- a list of resolvers that should be tried in order to access the property
-