Package io.jenkins.updatebot.support
Class ReflectionHelper
java.lang.Object
io.jenkins.updatebot.support.ReflectionHelper
public class ReflectionHelper extends Object
-
Constructor Summary
Constructors Constructor Description ReflectionHelper()
-
Method Summary
Modifier and Type Method Description protected static void
appendFieldsAnnotatatedWith(List<Field> list, Class<?> type, io.fabric8.utils.Filter<Field> filter)
static List<Field>
findFieldsAnnotatedWith(Class<?> type, Class<? extends Annotation> annotationClass)
Returns all the fields annotated with the given annotation in the given class or any super classesstatic List<Field>
findFieldsMatching(Class<?> type, io.fabric8.utils.Filter<Field> filter)
Returns all the fields matching the given filter in the given class or any super classesstatic Object
getFieldValue(Field field, Object instance)
-
Constructor Details
-
ReflectionHelper
public ReflectionHelper()
-
-
Method Details
-
findFieldsAnnotatedWith
public static List<Field> findFieldsAnnotatedWith(Class<?> type, Class<? extends Annotation> annotationClass)Returns all the fields annotated with the given annotation in the given class or any super classes -
findFieldsMatching
Returns all the fields matching the given filter in the given class or any super classes -
appendFieldsAnnotatatedWith
-
getFieldValue
-