Package org.brijframework.util.reflect
Class ParamUtil
- java.lang.Object
-
- org.brijframework.util.reflect.ParamUtil
-
public abstract class ParamUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ParamUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object[]getDefaultDgruments(Constructor<?> _method)static booleanisAssignable(Type lhsType, Type rhsType)Check if the right-hand side type may be assigned to the left-hand side type following the Java generics rules.static booleanisAssignableBound(Type lhsType, Type rhsType)static booleanisEqualParam(Class<?> params, Class<?> agr)static booleanisEqualParam(Type[] _params, Object... _agruments)static booleanisEqualParam(Type[] _params, Type... _agruments)static booleanisEqualTypes(Type[] _params, Type[] _agruments)static booleanisPrimitiveEq(Class<?> params, Class<?> agr)static booleanisValidParam(Constructor<?> _method, Object... _agruments)static booleanisValidParam(Method _method, Object[] _agruments)static Class<?>[]paramClasses(Object... _objects)
-
-
-
Method Detail
-
getDefaultDgruments
public static Object[] getDefaultDgruments(Constructor<?> _method)
-
isValidParam
public static boolean isValidParam(Constructor<?> _method, Object... _agruments)
-
isAssignable
public static boolean isAssignable(Type lhsType, Type rhsType)
Check if the right-hand side type may be assigned to the left-hand side type following the Java generics rules.- Parameters:
lhsType- the target typerhsType- the value type that should be assigned to the target type- Returns:
- true if rhs is assignable to lhs
-
-