接口的使用
org.springframework.expression.MethodResolver
使用MethodResolver的程序包 程序包 说明 org.springframework.expression Core abstractions behind the Spring Expression Language.org.springframework.expression.spel.support SpEL's default implementations for various core abstractions.org.springframework.expression中MethodResolver的使用
返回变量类型为MethodResolver的类型的org.springframework.expression中的方法 修饰符和类型 方法 说明 List<MethodResolver>
EvaluationContext. getMethodResolvers()
Return a list of resolvers that will be asked in turn to locate a method.org.springframework.expression.spel.support中MethodResolver的使用
实现MethodResolver的org.springframework.expression.spel.support中的类 修饰符和类型 类 说明 class
DataBindingMethodResolver
AMethodResolver
variant for data binding purposes, using reflection to access instance methods on a given target object.class
ReflectiveMethodResolver
Reflection-basedMethodResolver
used by default inStandardEvaluationContext
unless explicit method resolvers have been specified.返回变量类型为MethodResolver的类型的org.springframework.expression.spel.support中的方法 修饰符和类型 方法 说明 List<MethodResolver>
SimpleEvaluationContext. getMethodResolvers()
Return the specifiedMethodResolver
delegates, if any.List<MethodResolver>
StandardEvaluationContext. getMethodResolvers()
参数类型为MethodResolver的org.springframework.expression.spel.support中的方法 修饰符和类型 方法 说明 void
StandardEvaluationContext. addMethodResolver(MethodResolver resolver)
boolean
StandardEvaluationContext. removeMethodResolver(MethodResolver methodResolver)
SimpleEvaluationContext.Builder
SimpleEvaluationContext.Builder. withMethodResolvers(MethodResolver... resolvers)
Register the specifiedMethodResolver
delegates for a combination of property access and method resolution.类型变量类型为MethodResolver的org.springframework.expression.spel.support中的方法参数 修饰符和类型 方法 说明 void
StandardEvaluationContext. setMethodResolvers(List<MethodResolver> methodResolvers)