Package net.frozenspace.frostlib.util
Class ReflectUtil
- java.lang.Object
-
- net.frozenspace.frostlib.util.ReflectUtil
-
public class ReflectUtil extends java.lang.ObjectThis 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 superclassstatic java.util.List<java.lang.reflect.Method>getAllMethods(java.lang.Class<?> type)Get all the methods of the class and his superclass
-
-
-
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
-
-