public class ReflectionUtil extends Object
Constructor and Description |
---|
ReflectionUtil() |
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
getAllClassAnnotations(Class<?> cls,
Class<A> annotationType) |
static Class<?>[] |
getAllInterfaces(Class[] interfaces) |
static <A extends Annotation> |
getClassAnnotation(Class<?> cls,
Class<A> annotationType) |
static <T extends Annotation> |
getMethodAnnotation(Method method,
Class<T> annotationType) |
static <A extends Annotation> |
getPackageAnnotation(Class<?> cls,
Class<A> annotationType) |
static boolean |
isMatchingMethodSignatures(Method method,
Method otherMethod) |
public static <A extends Annotation> A getClassAnnotation(Class<?> cls, Class<A> annotationType)
public static <A extends Annotation> List<A> getAllClassAnnotations(Class<?> cls, Class<A> annotationType)
public static <T extends Annotation> T getMethodAnnotation(Method method, Class<T> annotationType)
public static <A extends Annotation> A getPackageAnnotation(Class<?> cls, Class<A> annotationType)
public static boolean isMatchingMethodSignatures(Method method, Method otherMethod)
method
- otherMethod
- Copyright © 2017. All rights reserved.