Package it.unive.lisa.type
Interface NumericType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanis16Bits()Returnstrueif this numeric type follows a 16-bits format representation.booleanis32Bits()Returnstrueif this numeric type follows a 32-bits format representation.booleanis64Bits()Returnstrueif this numeric type follows a 64-bits format representation.booleanis8Bits()Returnstrueif this numeric type follows a 8-bits format representation.booleanisIntegral()Returnstrueif this numeric type is integral, representing one of the numbers in the mathematical set Z.default booleanisSigned()Returnstrueif this numeric type is signed.booleanisUnsigned()Returnstrueif this numeric type is unsigned.-
Methods inherited from interface it.unive.lisa.type.Type
allInstances, asArrayType, asBooleanType, asNullType, asNumericType, asPointerType, asStringType, asTypeTokenType, asUnitType, asUntyped, asVoidType, canBeAssignedTo, commonSupertype, isArrayType, isBooleanType, isNullType, isNumericType, isPointerType, isStringType, isTypeTokenType, isUnitType, isUntyped, isVoidType
-
-
-
-
Method Detail
-
is8Bits
boolean is8Bits()
Returnstrueif this numeric type follows a 8-bits format representation.- Returns:
trueif this numeric type follows a 8-bits format representation;falseotherwise
-
is16Bits
boolean is16Bits()
Returnstrueif this numeric type follows a 16-bits format representation.- Returns:
trueif this numeric type follows a 16-bits format representation;falseotherwise
-
is32Bits
boolean is32Bits()
Returnstrueif this numeric type follows a 32-bits format representation.- Returns:
trueif this numeric type follows a 32-bits format representation;falseotherwise
-
is64Bits
boolean is64Bits()
Returnstrueif this numeric type follows a 64-bits format representation.- Returns:
trueif this numeric type follows a 64-bits format representation;falseotherwise
-
isUnsigned
boolean isUnsigned()
Returnstrueif this numeric type is unsigned.- Returns:
trueif this numeric type is unsigned;falseotherwise
-
isIntegral
boolean isIntegral()
Returnstrueif this numeric type is integral, representing one of the numbers in the mathematical set Z.- Returns:
trueif this numeric type is integral;falseotherwise
-
isSigned
default boolean isSigned()
Returnstrueif this numeric type is signed.- Returns:
trueif this numeric type is signed;falseotherwise
-
-