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 Constructor<?> |
findConstructor(Class<?> cls)
Searches for constructor suitable for resource instantiation.
|
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 |
isOverriddenMethod(Method methodToFind,
Class<?> cls)
Checks if the method methodToFind is the overridden method from the superclass.
|
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 Constructor<?> findConstructor(Class<?> cls)
cls - is the class where to searchpublic static com.google.common.base.Function<Annotation,Class<? extends Annotation>> createAnnotationTypeGetter()
Function for getting annotation types.Function for getting annotation typesCopyright © 2015. All Rights Reserved.