public class ReflectionHelper
extends java.lang.Object
| Constructor and Description |
|---|
ReflectionHelper() |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
acceptsStringArray(java.lang.reflect.Method method) |
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
|
private static java.util.List<java.lang.reflect.Method> |
getDefaultMethods(java.lang.Class<?> clazz) |
static java.lang.reflect.Method[] |
getLocalMethods(java.lang.Class<?> clazz) |
private static boolean |
isStaticVoid(java.lang.reflect.Method method) |
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.private static boolean isStaticVoid(java.lang.reflect.Method method)
private static boolean acceptsStringArray(java.lang.reflect.Method method)
private static java.util.List<java.lang.reflect.Method> getDefaultMethods(java.lang.Class<?> clazz)