Package org.brijframework.util.reflect
Class ClassUtil
- java.lang.Object
-
- org.brijframework.util.reflect.ClassUtil
-
public abstract class ClassUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ClassUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Class<?>collectionParamType(AccessibleObject _field)static Class<?>collectionParamType(Field _field)static Class<?>collectionParamType(Method _field)static List<Field>getAllRelField(Class<?> _class)static List<Class<?>>getAllSuperClass(Class<?> _class)get all supper class of current classstatic List<Class<?>>getAllSuperInterface(Class<?> _class)get all interface of current classstatic Class<?>getClass(String _className)get class from class namestatic Class<?>getCollectionType(Collection<?> _collection)static Type[]getGenericType(Class<?> target)static ParameterizedTypegetParameterizedType(Class<?> target)static Type[]getParameterizedTypes(Class<?> target)Class<?>getSuperClass(Class<?> _class)get supper class of current classClass<?>getSuperInterface(Class<?> _class)get supper interface of current classstatic booleanisArrayField(Field _field)static booleanisClass(String _className)static booleanisCollection(Class<?> _class)static booleanisContainInterface(Class<?> _class, Class<?> _interface)check interface is exist or not in current classstatic voidmain(String[] args)
-
-
-
Method Detail
-
getParameterizedType
public static ParameterizedType getParameterizedType(Class<?> target)
-
isClass
public static boolean isClass(String _className)
-
getClass
public static Class<?> getClass(String _className)
get class from class name- Parameters:
_className-- Returns:
- class
-
getSuperClass
public Class<?> getSuperClass(Class<?> _class)
get supper class of current class- Parameters:
_className-- Returns:
- class
-
getSuperInterface
public Class<?> getSuperInterface(Class<?> _class)
get supper interface of current class- Parameters:
_className-- Returns:
- class
-
getAllSuperInterface
public static List<Class<?>> getAllSuperInterface(Class<?> _class)
get all interface of current class- Parameters:
_className-- Returns:
- list
-
getAllSuperClass
public static List<Class<?>> getAllSuperClass(Class<?> _class)
get all supper class of current class- Parameters:
_class-- Returns:
- list
-
isContainInterface
public static boolean isContainInterface(Class<?> _class, Class<?> _interface)
check interface is exist or not in current class- Parameters:
_clazz-- Returns:
- list
-
collectionParamType
public static Class<?> collectionParamType(AccessibleObject _field)
-
getCollectionType
public static Class<?> getCollectionType(Collection<?> _collection)
-
isArrayField
public static boolean isArrayField(Field _field)
-
isCollection
public static boolean isCollection(Class<?> _class)
-
main
public static void main(String[] args)
-
-