@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> AnnotatedMethod<? super X> |
findMethod(AnnotatedType<X> type,
AnnotatedMethod<?> method)
Finds any method matching the method name and parameter types.
|
static <X> AnnotatedMethod<? super X> |
findMethod(AnnotatedType<X> type,
java.lang.reflect.Method javaMethod)
Finds any method matching the method name and parameter types.
|
static <X> AnnotatedMethod<? super X> |
findMethod(AnnotatedType<X> type,
java.lang.String methodName,
java.lang.Class<?>[] param)
Finds any method matching the method name and parameter types.
|
static <X> AnnotatedMethod<? super X> |
findMethod(java.util.Collection<AnnotatedMethod<? super X>> methodList,
AnnotatedMethod<?> 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> AnnotatedMethod<? super X> |
findMethod(java.util.Set<AnnotatedMethod<? super X>> methods,
java.lang.reflect.Method method)
Finds any method matching the method name and parameter types.
|
static <X> AnnotatedMethod<? super X> |
findMethod(java.util.Set<AnnotatedMethod<? super X>> 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(AnnotatedMethod<?> method,
java.lang.Class<?> exn)
Tests if a method throws a checked exception.
|
static boolean |
isMatch(AnnotatedMethod<?> methodA,
AnnotatedMethod<?> methodB)
Tests if two annotated methods are equivalent.
|
static boolean |
isMatch(AnnotatedMethod<?> method,
java.lang.String name,
java.lang.Class<?>[] param)
Tests if an annotated method matches a name and parameter types.
|
static boolean |
isMatch(java.lang.Class<?>[] paramA,
java.lang.Class<?>[] paramB)
Tests if parameters match a method's parameter types.
|
static boolean |
isMatch(java.lang.reflect.Method methodA,
java.lang.reflect.Method methodB)
Tests if an annotated method matches a name and parameter types.
|
static boolean |
isMatch(java.lang.reflect.Method javaMethod,
java.lang.String name,
java.lang.Class<?>[] param)
Tests if an annotated method matches a name and parameter types.
|
public static <X> AnnotatedMethod<? super X> findMethod(AnnotatedType<X> type, AnnotatedMethod<?> method)
public static <X> AnnotatedMethod<? super X> findMethod(java.util.Collection<AnnotatedMethod<? super X>> methodList, AnnotatedMethod<?> method)
public static <X> AnnotatedMethod<? super X> findMethod(AnnotatedType<X> type, java.lang.reflect.Method javaMethod)
public static <X> AnnotatedMethod<? super X> findMethod(AnnotatedType<X> type, java.lang.String methodName, java.lang.Class<?>[] param)
public static <X> AnnotatedMethod<? super X> findMethod(java.util.Set<AnnotatedMethod<? super X>> methods, java.lang.reflect.Method method)
public static <X> AnnotatedMethod<? super X> findMethod(java.util.Set<AnnotatedMethod<? super X>> 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(AnnotatedMethod<?> methodA, AnnotatedMethod<?> methodB)
public static boolean isMatch(AnnotatedMethod<?> method, java.lang.String name, java.lang.Class<?>[] param)
public static boolean isMatch(java.lang.reflect.Method javaMethod, java.lang.String name, java.lang.Class<?>[] param)
public static boolean isMatch(java.lang.reflect.Method methodA, java.lang.reflect.Method methodB)
public static boolean isMatch(java.lang.Class<?>[] paramA, java.lang.Class<?>[] paramB)
public static boolean hasException(AnnotatedMethod<?> method, java.lang.Class<?> exn)