Package com.sap.cds.services.impl.utils
Class ReflectionUtils
java.lang.Object
com.sap.cds.services.impl.utils.ReflectionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>getClassForType(Type type) Returns the class of a type, using the upper bound in case of aWildcardTypestatic ParameterizedTypegetParameterizedType(Type type) Returns the type asParameterizedType, using the upper bound in case of aWildcardTypestatic booleanisParameterizedType(Type type) Returns true if the the type is aParameterizedType, using the upper bound in case of aWildcardType
-
Method Details
-
isParameterizedType
Returns true if the the type is aParameterizedType, using the upper bound in case of aWildcardType- Parameters:
type- the type to check- Returns:
- true, if the type is a
ParameterizedType
-
getParameterizedType
Returns the type asParameterizedType, using the upper bound in case of aWildcardType- Parameters:
type- the type to cast- Returns:
- the casted type
-
getClassForType
Returns the class of a type, using the upper bound in case of aWildcardType- Parameters:
type- the type to resolve the class for- Returns:
- the class of the type
- Throws:
ClassNotFoundException- in case the class is not available
-