Package org.cxbox.core.util
Class InstrumentationAwareReflectionUtils
java.lang.Object
org.cxbox.core.util.InstrumentationAwareReflectionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Fieldstatic Class<?>getAllNonSyntheticFieldsList(Class<?> cls) Gets all non-synthetic fields of the given class and its parents (if any).
-
Constructor Details
-
InstrumentationAwareReflectionUtils
public InstrumentationAwareReflectionUtils()
-
-
Method Details
-
getAllNonSyntheticFieldsList
Gets all non-synthetic fields of the given class and its parents (if any). Frameworks like jacoco add synthetic fields for internal usage. This method can be used instead of FieldUtils.getAllFieldsList to avoid clashes with such fields- Parameters:
cls- theClassto query- Returns:
- an array of Fields (possibly empty).
- Throws:
IllegalArgumentException- if the class isnull
-
getFields
-
forName
-
findField
-