public class ReflectionUtils extends Object
| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Function<Annotation,Class<? extends Annotation>> |
createAnnotationTypeGetter()
Returns an implementation of
Function for getting annotation types. |
static Method |
findMethod(Method methodToFind,
Class<?> cls)
Searches the method methodToFind in given class cls.
|
static Method |
getOverriddenMethod(Method method)
Returns overridden method from superclass if it exists.
|
static boolean |
isConstructorCompatible(Constructor<?> constructor) |
static boolean |
isContext(List<Annotation> annotations) |
static boolean |
isInject(List<Annotation> annotations) |
static boolean |
isOverriddenMethod(Method methodToFind,
Class<?> cls)
Checks if the method methodToFind is the overridden method from the superclass.
|
static Type |
typeFromString(String type) |
public static boolean isOverriddenMethod(Method methodToFind, Class<?> cls)
methodToFind - is method to checkcls - is method classpublic static Method getOverriddenMethod(Method method)
method - is method to findpublic static Method findMethod(Method methodToFind, Class<?> cls)
methodToFind - is the method to searchcls - is the class or interface where to searchpublic static com.google.common.base.Function<Annotation,Class<? extends Annotation>> createAnnotationTypeGetter()
Function for getting annotation types.Function for getting annotation typespublic static boolean isContext(List<Annotation> annotations)
public static boolean isInject(List<Annotation> annotations)
public static boolean isConstructorCompatible(Constructor<?> constructor)
Copyright © 2015. All Rights Reserved.