java.lang.Object
ushiosan.jvm_utilities.lang.reflection.ClassUtils

public final class ClassUtils extends Object
Class in charge of carrying out reflection processes to the classes
  • 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 the Object class because its inclusion is redundant.
      Parameters:
      cls - the class you want to inspect
      recursive - Perform the action recursively until the start of the inheritance is reached
      Returns:
      the inheritance stack of a class
    • getClassStack

      @NotNull public static @NotNull Stack<Class<?>> getClassStack(@NotNull @NotNull Class<?> cls)
      Returns the inheritance stack of a class. This excludes the Object class because its inclusion is redundant.
      Parameters:
      cls - the class you want to inspect
      Returns:
      the inheritance stack of a class