|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.util.UtilAnnotations
public final class UtilAnnotations
Utility Annotations class.
| Method Summary | ||
|---|---|---|
static List<Method> |
getAllDeclaredMethods(Class<?> type)
Get all declared methods, from superclass to subclass in that order. |
|
static
|
getAnnotatedMethods(Class<?> type,
Class<T> annotation)
Get annotations of a given type. |
|
static
|
getAnnotatedMethods(Object instance,
Class<T> annotation)
Get annotations of a given object. |
|
static List<Method> |
getMethods(Class<?> type)
Get public methods of a type. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T extends Annotation> List<Method> getAnnotatedMethods(Object instance,
Class<T> annotation)
T - Annotation type.instance - An object instance.annotation - The annotation type.
public static <T extends Annotation> List<Method> getAnnotatedMethods(Class<?> type,
Class<T> annotation)
T - Annotation type.type - A class type.annotation - The annotation type.
public static List<Method> getMethods(Class<?> type)
type - A type.
public static List<Method> getAllDeclaredMethods(Class<?> type)
type - The method type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||