java.lang.Object
de.bsommerfeld.jshepherd.utils.ClassUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllFieldsInHierarchy(Class<?> clazz, Class<?> stopClass) Gets all declared fields from the given class and its superclasses, up to (but not including) Object.class or a specified stop class.
-
Constructor Details
-
ClassUtils
public ClassUtils()
-
-
Method Details
-
getAllFieldsInHierarchy
Gets all declared fields from the given class and its superclasses, up to (but not including) Object.class or a specified stop class. Fields from superclasses appear first in the list.- Parameters:
clazz- The class to introspect.stopClass- The class at which to stop ascending the hierarchy (e.g., ConfigurablePojo.class).- Returns:
- A list of all relevant fields.
-