public class MethodInfoUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MethodInfoUtil.BaseComparator<T> |
static class |
MethodInfoUtil.Level |
static class |
MethodInfoUtil.MethodPermissionComparator |
static class |
MethodInfoUtil.View |
static class |
MethodInfoUtil.ViewMethod |
Constructor and Description |
---|
MethodInfoUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.Method |
getMethod(java.lang.Class clazz,
MethodInfo info) |
static MethodInfoUtil.Level |
level(MethodInfo methodInfo) |
static boolean |
match(java.lang.reflect.Method methodA,
java.lang.reflect.Method methodB) |
static boolean |
matches(java.lang.reflect.Method method,
MethodInfo methodInfo) |
static boolean |
matches(java.lang.reflect.Method method,
NamedMethodInfo methodInfo) |
static boolean |
matches(java.lang.reflect.Method method,
java.lang.String methodName,
java.util.List<java.lang.String> methodParams) |
static java.util.List<java.lang.reflect.Method> |
matchingMethods(java.lang.reflect.Method signature,
java.lang.Class clazz) |
static java.util.List<java.lang.reflect.Method> |
matchingMethods(MethodInfo mi,
java.lang.Class clazz) |
static java.util.List<java.lang.reflect.Method> |
matchingMethods(MethodInfo mi,
java.lang.reflect.Method[] methods) |
static java.util.List<MethodPermissionInfo> |
normalizeMethodPermissionInfos(java.util.List<MethodPermissionInfo> infos)
This method splits the MethodPermissionInfo objects so that there is
exactly one MethodInfo per MethodPermissionInfo.
|
static java.util.Map<java.lang.reflect.Method,MethodAttributeInfo> |
resolveAttributes(java.util.List<? extends MethodAttributeInfo> infos,
BeanContext beanContext) |
static java.util.Map<MethodInfoUtil.ViewMethod,MethodAttributeInfo> |
resolveViewAttributes(java.util.List<? extends MethodAttributeInfo> infos,
BeanContext beanContext) |
static java.lang.reflect.Method |
toMethod(java.lang.Class clazz,
NamedMethodInfo info)
Finds the nearest java.lang.reflect.Method with the given NamedMethodInfo
Callbacks can be private so class.getMethod() cannot be used.
|
static java.lang.String |
toString(MethodConcurrencyInfo i) |
static java.lang.String |
toString(MethodInfo i) |
static java.lang.String |
toString(MethodPermissionInfo i) |
static java.lang.String |
toString(MethodTransactionInfo i) |
static MethodInfoUtil.View |
view(MethodInfo methodInfo) |
public static java.lang.reflect.Method toMethod(java.lang.Class clazz, NamedMethodInfo info)
clazz
- info
- java.lang.IllegalStateException
- if the method is not found in this class or any of its parent classespublic static java.util.List<java.lang.reflect.Method> matchingMethods(java.lang.reflect.Method signature, java.lang.Class clazz)
public static java.util.List<java.lang.reflect.Method> matchingMethods(MethodInfo mi, java.lang.Class clazz)
public static java.util.List<java.lang.reflect.Method> matchingMethods(MethodInfo mi, java.lang.reflect.Method[] methods)
public static java.lang.reflect.Method getMethod(java.lang.Class clazz, MethodInfo info)
public static java.util.List<MethodPermissionInfo> normalizeMethodPermissionInfos(java.util.List<MethodPermissionInfo> infos)
infos
- public static java.util.Map<java.lang.reflect.Method,MethodAttributeInfo> resolveAttributes(java.util.List<? extends MethodAttributeInfo> infos, BeanContext beanContext)
public static java.util.Map<MethodInfoUtil.ViewMethod,MethodAttributeInfo> resolveViewAttributes(java.util.List<? extends MethodAttributeInfo> infos, BeanContext beanContext)
public static boolean match(java.lang.reflect.Method methodA, java.lang.reflect.Method methodB)
public static boolean matches(java.lang.reflect.Method method, MethodInfo methodInfo)
public static boolean matches(java.lang.reflect.Method method, NamedMethodInfo methodInfo)
public static boolean matches(java.lang.reflect.Method method, java.lang.String methodName, java.util.List<java.lang.String> methodParams)
public static MethodInfoUtil.View view(MethodInfo methodInfo)
public static MethodInfoUtil.Level level(MethodInfo methodInfo)
public static java.lang.String toString(MethodInfo i)
public static java.lang.String toString(MethodPermissionInfo i)
public static java.lang.String toString(MethodTransactionInfo i)
public static java.lang.String toString(MethodConcurrencyInfo i)