Class ClassUtils
java.lang.Object
ushiosan.jvm_utilities.lang.reflection.ClassUtils
Class in charge of carrying out reflection processes to the classes
-
Method Summary
-
Method Details
-
getClassStack
@NotNull public static @NotNull Stack<Class<?>> getClassStack(@NotNull @NotNull Class<?> cls, boolean recursive) Returns the inheritance stack of a class. This excludes theObjectclass because its inclusion is redundant.- Parameters:
cls- the class you want to inspectrecursive- Perform the action recursively until the start of the inheritance is reached- Returns:
- the inheritance stack of a class
-
getClassStack
Returns the inheritance stack of a class. This excludes theObjectclass because its inclusion is redundant.- Parameters:
cls- the class you want to inspect- Returns:
- the inheritance stack of a class
-