Interface ClassUtil
- All Superinterfaces:
org.brijframework.util.CommanUtil
public interface ClassUtil
extends org.brijframework.util.CommanUtil
-
Field Summary
Fields inherited from interface org.brijframework.util.CommanUtil
BIGDECIMAL_CLASS, BIGINTEGER_CLASS, BOOLEAN_CLASS, BYTE_CLASS, CURRENCY_NUM_NAMES, CURRENCY_SPECIAL_NAMES, CURRENCY_TENS_NAMES, DEFAULT_BIGDECIMAL, DEFAULT_BIGINTEGER, DEFAULT_CHAR, DEFAULT_DOBULE, DEFAULT_FLOAT, DEFAULT_INTEGER, DEFAULT_OBJECT, DEFAULT_SHORT, DEFAULT_STRING, DOUBLE_CLASS, FLOAT_CLASS, INTEGER_CLASS, LONG_CLASS, NULL_STRING, NUMBER_CLASS, SHORT_CLASS, SHORT_FALSE, SHORT_OFF, SHORT_ON, SHORT_TRUE, STRING_CLASS, ZERO_BIGDECIMAL, ZERO_BIGINTEGER, ZERO_DOBULE, ZERO_INTEGER, ZERO_SHORT -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Class<?>collectionParamType(AccessibleObject _field) static Class<?>collectionParamType(Field _field) static Class<?>collectionParamType(Method _field) getAllRelField(Class<?> _class) getAllSuperClass(Class<?> _class) get all supper class of current classgetAllSuperInterface(Class<?> _class) get all interface of current classstatic Class<?>get class from class namestatic Class<?>getCollectionType(Collection<?> _collection) static Type[]getGenericType(Class<?> target) static ParameterizedTypegetParameterizedType(Class<?> target) static Type[]getParameterizedTypes(Class<?> target) static Class<?>getSuperClass(Class<?> _class) get supper class of current classstatic Class<?>getSuperInterface(Class<?> _class) get supper interface of current classstatic Class<?>getTargetClass(Class<?> type) Find implement class from given class for create objectstatic Class<?>getTargetClass(Field field, Class<?> type) Find implement class from given class for create objectstatic Class<?>getTargetClass(Method field, Class<?> type) Find implement class from given class for create objectstatic booleanisArrayClass(Class<?> cls) static booleanisArrayField(Field _field) static booleanCheck if class isBooleanstatic booleanstatic booleanisCollection(Class<?> _class) static booleanisContainInterface(Class<?> _class, Class<?> _interface) check interface is exist or not in current classstatic booleanisJarClass(Object object) static <T> booleanisJDKClass(T t) static booleanCheck if class isBooleanstatic BooleanisPrimativeArray(Object obj) static BooleanisPrimativeClass(Class<?> _class) static booleanisProjectClass(Object object) static <T> booleanisTypeClass(T t, String packageStart) static void
-
Method Details
-
isJDKClass
static <T> boolean isJDKClass(T t) -
isProjectClass
-
isJarClass
-
isTypeClass
-
isArrayClass
-
getTargetClass
Find implement class from given class for create object- Parameters:
field-type-- Returns:
- Class
-
getTargetClass
Find implement class from given class for create object- Parameters:
field-type-- Returns:
- Class
-
getTargetClass
Find implement class from given class for create object- Parameters:
field-type-- Returns:
- Class
-
isBoolean
Check if class isBoolean -
isNumber
Check if class isBoolean -
isPrimativeClass
-
isPrimativeArray
-
getParameterizedType
-
getParameterizedTypes
-
getGenericType
-
isClass
-
getClass
get class from class name- Parameters:
_className-- Returns:
- class
-
getSuperClass
get supper class of current class- Parameters:
_className-- Returns:
- class
-
getSuperInterface
get supper interface of current class- Parameters:
_className-- Returns:
- class
-
getAllSuperInterface
get all interface of current class- Parameters:
_className-- Returns:
- list
-
getAllSuperClass
get all supper class of current class- Parameters:
_class-- Returns:
- list
-
isContainInterface
check interface is exist or not in current class- Parameters:
_clazz-- Returns:
- list
-
collectionParamType
-
collectionParamType
-
collectionParamType
-
getCollectionType
-
isArrayField
-
isCollection
-
getAllRelField
-
main
-