@Module public class AnnotatedTypeUtil extends java.lang.Object
| Constructor and Description |
|---|
AnnotatedTypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.reflect.Method |
findDeclaredMethod(java.lang.Class<?> cl,
java.lang.reflect.Method testMethod)
Finds any method matching the method name and parameter types.
|
static <X> <any> |
findMethod(<any> type,
<any> method)
Finds any method matching the method name and parameter types.
|
static <X> <any> |
findMethod(<any> type,
java.lang.reflect.Method javaMethod)
Finds any method matching the method name and parameter types.
|
static <X> <any> |
findMethod(<any> type,
java.lang.String methodName,
java.lang.Class<?>[] param)
Finds any method matching the method name and parameter types.
|
static <X> <any> |
findMethod(java.util.Collection<<any>> methodList,
<any> method)
Finds any method matching the method name and parameter types.
|
static java.lang.reflect.Method |
findMethod(java.util.Collection<java.lang.reflect.Method> methods,
java.lang.reflect.Method testMethod)
Finds any method matching the method name and parameter types.
|
static java.lang.reflect.Method |
findMethod(java.lang.reflect.Method[] methods,
java.lang.reflect.Method testMethod)
Finds any method matching the method name and parameter types.
|
static <X> <any> |
findMethod(java.util.Set<<any>> methods,
java.lang.reflect.Method method)
Finds any method matching the method name and parameter types.
|
static <X> <any> |
findMethod(java.util.Set<<any>> methods,
java.lang.String methodName,
java.lang.Class<?>[] param)
Finds any method matching the method name and parameter types.
|
static BaseType |
getBaseType(Annotated annotated) |
static boolean |
hasException(<any> method,
java.lang.Class<?> exn)
Tests if a method throws a checked exception.
|
static boolean |
isMatch(<any> methodA,
<any> methodB)
Tests if two annotated methods are equivalent.
|
static boolean |
isMatch(<any> method,
java.lang.String name,
java.lang.Class<?>[] param)
Tests if an annotated method matches a name and parameter types.
|
public static <X> <any> findMethod(<any> type,
<any> method)
public static <X> <any> findMethod(java.util.Collection<<any>> methodList,
<any> method)
public static <X> <any> findMethod(<any> type,
java.lang.reflect.Method javaMethod)
public static <X> <any> findMethod(<any> type,
java.lang.String methodName,
java.lang.Class<?>[] param)
public static <X> <any> findMethod(java.util.Set<<any>> methods,
java.lang.reflect.Method method)
public static <X> <any> findMethod(java.util.Set<<any>> methods,
java.lang.String methodName,
java.lang.Class<?>[] param)
public static java.lang.reflect.Method findDeclaredMethod(java.lang.Class<?> cl,
java.lang.reflect.Method testMethod)
public static java.lang.reflect.Method findMethod(java.lang.reflect.Method[] methods,
java.lang.reflect.Method testMethod)
public static java.lang.reflect.Method findMethod(java.util.Collection<java.lang.reflect.Method> methods,
java.lang.reflect.Method testMethod)
public static boolean isMatch(<any> methodA,
<any> methodB)
public static boolean isMatch(<any> method,
java.lang.String name,
java.lang.Class<?>[] param)
public static boolean hasException(<any> method,
java.lang.Class<?> exn)
public static BaseType getBaseType(Annotated annotated)