Class Reflections


  • public abstract class Reflections
    extends java.lang.Object
    This class is a helper class to do some reflection stuff.
    Author:
    Markus von RĂ¼den
    • Constructor Summary

      Constructors 
      Constructor Description
      Reflections()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.Class<?>> buildClassHierarchy​(java.lang.Class<?> clazz)
      Gets a list of all parent interfaces and classes implemented/inherit by clazz.

      Example:
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Reflections

        public Reflections()
    • Method Detail

      • buildClassHierarchy

        public static java.util.List<java.lang.Class<?>> buildClassHierarchy​(java.lang.Class<?> clazz)
        Gets a list of all parent interfaces and classes implemented/inherit by clazz.

        Example:
           class A implements Serializable, Clonable {
           ....
           }
         
           class B extends A implements Comparable {
            ....
           }
         
           class C extends B {
         
            ....
         
           }
         
           buildClassHierarchy(c.class) returns [C.class, Comparable.class, B.class, Serializable.class, Cloneable.class, A.class]
         
        Parameters:
        clazz -
        Returns: