public class ReflectionHelper
extends java.lang.Object
Constructor and Description |
---|
ReflectionHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.Method[] |
excludingMain(java.lang.Class<?> clazz) |
static <T extends java.lang.annotation.Annotation> |
findAnnotation(java.lang.Class<?> typedTestClass,
java.lang.Class<T> annotation)
A helper method that looks for a given annotation in the current class (or) in any of the super
classes
|
static java.lang.reflect.Method[] |
getLocalMethods(java.lang.Class<?> clazz) |
public static java.lang.reflect.Method[] getLocalMethods(java.lang.Class<?> clazz)
public static java.lang.reflect.Method[] excludingMain(java.lang.Class<?> clazz)
main()
method alone.public static <T extends java.lang.annotation.Annotation> T findAnnotation(java.lang.Class<?> typedTestClass, java.lang.Class<T> annotation)
T
- - The annotation typetypedTestClass
- - The class to search forannotation
- - The annotation to look fornull.