Class ReflectUtil


  • public class ReflectUtil
    extends java.lang.Object
    This class contains some util method for reflections
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.reflect.Field> getAllFields​(java.lang.Class<?> type)
      Get all the field of the class and his superclass
      static java.util.List<java.lang.reflect.Method> getAllMethods​(java.lang.Class<?> type)
      Get all the methods of the class and his superclass
      • Methods inherited from class java.lang.Object

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

      • getAllFields

        public static java.util.List<java.lang.reflect.Field> getAllFields​(java.lang.Class<?> type)
        Get all the field of the class and his superclass
        Parameters:
        type - Class to check
        Returns:
        All the fields
      • getAllMethods

        public static java.util.List<java.lang.reflect.Method> getAllMethods​(java.lang.Class<?> type)
        Get all the methods of the class and his superclass
        Parameters:
        type - Class to check
        Returns:
        All the methods