Package org.aksw.commons.beans.model
Class ReflectionUtils
java.lang.Object
org.aksw.commons.beans.model.ReflectionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Fieldstatic MethodfindMethod(Class<?> clazz, String name, Class<?>... parameterTypes) Find a method or return null if none found.static voidmakeAccessible(Constructor<?> ctor)
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
findMethod
Find a method or return null if none found. Never raises an exception. -
makeAccessible
-
findField
Copy & adapted from springframework 5.2.8.RELEASE Attempt to find afieldon the suppliedClasswith the suppliednameand/ortype. Searches all superclasses up toObject.- Parameters:
clazz- the class to introspectname- the name of the field (may benullif type is specified)type- the type of the field (may benullif name is specified)- Returns:
- the corresponding Field object, or
nullif not found
-