Package com.strobel.util
Class TypeUtils
java.lang.Object
com.strobel.util.TypeUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areEquivalent
(Type<?> class1, Type<?> class2) static boolean
areEquivalent
(TypeList types1, TypeList types2) static boolean
areEquivalentWithOrdering
(TypeList types1, TypeList types2) static boolean
areReferenceAssignable
(Type<?> destination, Type<?> source) static int
static int
static Type
<?> getBoxedType
(Type<?> type) static Type
<?> getBoxedTypeOrSelf
(Type<?> type) static MethodInfo
getBoxMethod
(Type<?> type) static MethodInfo
getCoercionMethod
(Type<?> source, Type<?> destination) static String
getInternalName
(Class<?> clazz) static MethodInfo
getUnboxMethod
(Type<?> type) static MethodInfo
getUnboxMethod
(Type<?> boxedType, Type<?> unboxedType) static Type
<?> getUnderlyingPrimitive
(Type<?> type) static Type
<?> getUnderlyingPrimitiveOrSelf
(Type<?> type) static boolean
hasBuiltInEqualityOperator
(Type<?> left, Type<?> right) static boolean
hasIdentityPrimitiveOrBoxingConversion
(Type<?> source, Type<?> destination) static boolean
hasReferenceConversion
(Type<?> source, Type<?> destination) static boolean
hasReferenceEquality
(Type<?> left, Type<?> right) static boolean
isArithmetic
(Type<?> type) static boolean
isAutoUnboxed
(Type<?> type) static boolean
static boolean
isDoubleWord
(Type<?> type) static boolean
isDoubleWord
(TypeKind kind) static boolean
isImplicitNumericConversion
(Type<?> sourceType, Type<?> targetType) static boolean
isIntegral
(Type<?> type) static boolean
isIntegral
(TypeKind kind) static boolean
isIntegralOrBoolean
(Type<?> type) static boolean
static boolean
static boolean
isSameOrSubType
(Type<?> type, Type<?> subType) static boolean
isSingleWord
(Type<?> type) static boolean
isSingleWord
(TypeKind kind) static boolean
isSubWordOrInt32
(Type<?> type) static boolean
isSubWordOrInt32
(TypeKind kind) static boolean
isValidInvocationTargetType
(MethodInfo method, Type<?> targetType)
-
Constructor Details
-
TypeUtils
private TypeUtils()
-
-
Method Details
-
isAutoUnboxed
-
getUnderlyingPrimitive
-
getBoxedTypeOrSelf
-
getUnderlyingPrimitiveOrSelf
-
getBoxedType
-
isArithmetic
-
isNumeric
-
isIntegralOrBoolean
-
isIntegral
-
isBoolean
-
areEquivalent
-
areEquivalentWithOrdering
-
areEquivalent
-
hasIdentityPrimitiveOrBoxingConversion
-
hasReferenceConversion
-
getCoercionMethod
-
getBoxMethod
-
getUnboxMethod
-
getUnboxMethod
-
areReferenceAssignable
-
hasReferenceEquality
-
hasBuiltInEqualityOperator
-
isValidInvocationTargetType
-
isSameOrSubType
-
isImplicitNumericConversion
-
getInternalName
-
isSingleWord
-
isSingleWord
-
isDoubleWord
-
isDoubleWord
-
isNumeric
-
isIntegral
-
isSubWordOrInt32
-
isSubWordOrInt32
-
bitWidth
-
bitWidth
-