Package com.github.joschi.jadconfig
Class ReflectionUtils
java.lang.Object
com.github.joschi.jadconfig.ReflectionUtils
Reflection related helper class.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Field[]getAllFields(Class<?> klass) static Method[]getAllMethods(Class<?> klass) static ObjectgetFieldValue(Object instance, Field field) static Object[]invokeMethodsWithAnnotation(Object instance, Class<? extends Annotation> annotationClass, Method[] methods)
-
Method Details
-
getFieldValue
- Throws:
IllegalAccessException
-
getAllFields
-
getAllMethods
-
invokeMethodsWithAnnotation
public static Object[] invokeMethodsWithAnnotation(Object instance, Class<? extends Annotation> annotationClass, Method[] methods) throws Exception - Throws:
Exception
-