|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Node
xtc.type.Type
xtc.type.NumberT
xtc.type.IntegerT
public class IntegerT
An integer type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.NumberT |
|---|
NumberT.Kind |
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Field Summary |
|---|
| Fields inherited from class xtc.type.NumberT |
|---|
BYTE, 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 Summary | |
|---|---|
IntegerT(NumberT.Kind kind)
Create a new integer type. |
|
IntegerT(Type template,
NumberT.Kind kind)
Create a new integer type. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class xtc.type.NumberT |
|---|
equal, equalIgnoringSign, equals, getKind, hashCode, hasKind, isNumber, isSigned, toNumber, toString, write |
| Methods inherited from class xtc.tree.Node |
|---|
add, 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, toToken |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
public IntegerT copy()
Type
copy in class Typepublic Type.Tag tag()
Type
tag in class TypeType.wtag()public boolean isInteger()
Type
isInteger in class Typetrue if this type is an integer.public IntegerT toInteger()
Type
toInteger in class Type
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||