Class ReflectionUtil
java.lang.Object
org.teamapps.util.ReflectionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Fieldstatic FieldfindFields(Class<?> clazz, Predicate<Field> predicate) static MethodfindGetter(Class<?> clazz, String propertyName) static MethodfindMethod(Class<?> clazz, String methodName) static MethodfindMethod(Class<?> clazz, Predicate<Method> predicate) static MethodfindMethodByName(Class<?> clazz, String methodName) findMethods(Class<?> clazz, Predicate<Method> predicate) static MethodfindSetter(Class<?> clazz, String propertyName) static <V> VgetPropertyValue(Object o, String propertyName) static <RECORD> ObjectinvokeMethod(RECORD object, Method method, Object... parameters) static Objectstatic voidstatic voidstatic voidstatic <V> voidsetProperty(Object o, String propertyName, V value) static String
-
Constructor Details
-
ReflectionUtil
public ReflectionUtil()
-
-
Method Details
-
findFields
-
findField
-
findField
-
findMethods
-
getAllExtendedOrImplementedTypesRecursively
-
findMethod
-
findMethod
-
findMethodByName
-
findGetter
-
findSetter
-
getPropertyValue
-
setProperty
-
toStringUsingReflection
-
invokeMethod
-
readField
-
readField
-
setField
-
setField
-