NumberT.KindBYTE, CHAR, DOUBLE, DOUBLE_COMPLEX, FLOAT, FLOAT_COMPLEX, INT, kind, LONG, LONG_DOUBLE, LONG_DOUBLE_COMPLEX, LONG_LONG, S_CHAR, S_INT, SHORT, U_CHAR, U_INT, U_LONG, U_LONG_LONG, U_SHORT| Constructor and Description |
|---|
IntegerT(NumberT.Kind kind)
Create a new integer type.
|
IntegerT(Type template,
NumberT.Kind kind)
Create a new integer type.
|
| Modifier and Type | Method and Description |
|---|---|
IntegerT |
copy()
Create a deep copy of this type.
|
static NumberT.Kind |
fromRank(int rank,
boolean signed)
Convert the specified rank to the corresponding integer kind.
|
boolean |
isInteger()
Determine whether this type is an integer.
|
Type.Tag |
tag()
Get this type's tag.
|
IntegerT |
toInteger()
Get this type as an integer.
|
equal, equalIgnoringSign, equals, getKind, hashCode, hasKind, isNumber, isSigned, toNumber, toString, writeaddAttribute, annotate, attribute, attribute, attribute, attributes, cast, checkNotSealed, constant, constant, copy, deannotate, getAttribute, getAttribute, getConstant, getConstant, getLanguage, getLanguage, getLocation, getLocation, getScope, getScope, getShape, getShape, hasAlias, hasAnnotated, hasAttribute, hasAttribute, hasAttribute, hasAttribute, hasAttributes, hasConstant, hasConstant, hasEnum, hasEnumerator, hasError, hasInstantiated, hasLanguage, hasLanguage, hasLocation, hasLocation, hasParameterized, hasScope, hasScope, hasShape, hasShape, hasStructOrUnion, hasTag, hasTagged, hasVariable, hasWTag, isAlias, isAnnotated, isArray, isBoolean, isClass, isConcrete, isDerived, isEnum, isEnumerator, isError, isFloat, isFunction, isInstantiated, isInterface, isInternal, isInternalParameter, isLabel, isMethod, isNamedParameter, isPackage, isParameter, isParameterized, isPointer, isSealed, isStruct, isTuple, isUnion, isUnit, isVariable, isVariant, isVoid, isWildcard, isWrapped, language, locate, locate, mark, properties, removeAttribute, removeProperty, resolve, resolve, scope, seal, seal, setLocation, setLocation, setProperty, shape, shape, toAlias, toAnnotated, toArray, toBoolean, toClass, toEnum, toEnumerator, toFloat, toFunction, toInstantiated, toInterface, toInternal, toInternalParameter, toLabel, toMethod, toNamedParameter, toPackage, toParameter, toParameterized, toPointer, toStruct, toStructOrUnion, toTagged, toTuple, toUnion, toUnit, toVariable, toVariant, toVoid, toWildcard, toWrapped, trace, wtagadd, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getName, getNode, getProperty, getString, getStringProperty, getTokenText, hasName, hasProperty, hasTraversal, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, remove, set, size, strip, toAnnotation, toList, toTokenpublic IntegerT(NumberT.Kind kind)
kind - The kind.java.lang.IllegalArgumentException - Signals an invalid kind.public IntegerT(Type template, NumberT.Kind kind)
template - The type whose annotations to copy.kind - The kind.java.lang.IllegalArgumentException - Signals an invalid kind.public IntegerT copy()
Typepublic Type.Tag tag()
Typetag in class TypeType.wtag()public boolean isInteger()
Typepublic IntegerT toInteger()
Typepublic static NumberT.Kind fromRank(int rank, boolean signed)
char,
short, int, long, and
long long, starting at 1 and ignoring the sign.rank - The rank.signed - The flag for a signed integer.java.lang.IllegalArgumentException - Signals an invalid rank.Copyright © 2014. All Rights Reserved.