Class TypeUtils
java.lang.Object
com.strobel.util.TypeUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareEquivalent(Type<?> class1, Type<?> class2) static booleanareEquivalent(TypeList types1, TypeList types2) static booleanareEquivalentWithOrdering(TypeList types1, TypeList types2) static booleanareReferenceAssignable(Type<?> destination, Type<?> source) static intstatic intstatic Type<?> getBoxedType(Type<?> type) static Type<?> getBoxedTypeOrSelf(Type<?> type) static MethodInfogetBoxMethod(Type<?> type) static MethodInfogetCoercionMethod(Type<?> source, Type<?> destination) static StringgetInternalName(Class<?> clazz) static MethodInfogetUnboxMethod(Type<?> type) static MethodInfogetUnboxMethod(Type<?> boxedType, Type<?> unboxedType) static Type<?> getUnderlyingPrimitive(Type<?> type) static Type<?> getUnderlyingPrimitiveOrSelf(Type<?> type) static booleanhasBuiltInEqualityOperator(Type<?> left, Type<?> right) static booleanhasIdentityPrimitiveOrBoxingConversion(Type<?> source, Type<?> destination) static booleanhasReferenceConversion(Type<?> source, Type<?> destination) static booleanhasReferenceEquality(Type<?> left, Type<?> right) static booleanisArithmetic(Type<?> type) static booleanisAutoUnboxed(Type<?> type) static booleanstatic booleanisDoubleWord(Type<?> type) static booleanisDoubleWord(TypeKind kind) static booleanisImplicitNumericConversion(Type<?> sourceType, Type<?> targetType) static booleanisIntegral(Type<?> type) static booleanisIntegral(TypeKind kind) static booleanisIntegralOrBoolean(Type<?> type) static booleanstatic booleanstatic booleanisSameOrSubType(Type<?> type, Type<?> subType) static booleanisSingleWord(Type<?> type) static booleanisSingleWord(TypeKind kind) static booleanisSubWordOrInt32(Type<?> type) static booleanisSubWordOrInt32(TypeKind kind) static booleanisValidInvocationTargetType(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
-