| |
|
| xtc.type.Type xtc.type.NumberT xtc.type.IntegerT
IntegerT | public class IntegerT extends NumberT (Code) | | An integer type.
author: Robert Grimm version: $Revision: 1.36 $ |
Constructor Summary | |
public | IntegerT(Kind kind) Create a new integer type. | public | IntegerT(Type template, Kind kind) Create a new integer type. |
Method Summary | |
public IntegerT | copy() | public static Kind | fromRank(int rank, boolean signed) Convert the specified rank to the corresponding integer kind.
The rank reflects the ordering char ,
short , int , long , and
long long , starting at 1 and ignoring the sign.
Parameters: rank - The rank. Parameters: signed - The flag for a signed integer. | public boolean | isInteger() | public Type.Tag | tag() | public IntegerT | toInteger() |
IntegerT | public IntegerT(Kind kind)(Code) | | Create a new integer type.
Parameters: kind - The kind. throws: IllegalArgumentException - Signals an invalid kind. |
IntegerT | public IntegerT(Type template, Kind kind)(Code) | | Create a new integer type.
Parameters: template - The type whose annotations to copy. Parameters: kind - The kind. throws: IllegalArgumentException - Signals an invalid kind. |
fromRank | public static Kind fromRank(int rank, boolean signed)(Code) | | Convert the specified rank to the corresponding integer kind.
The rank reflects the ordering char ,
short , int , long , and
long long , starting at 1 and ignoring the sign.
Parameters: rank - The rank. Parameters: signed - The flag for a signed integer. The corresponding kind. throws: IllegalArgumentException - Signals an invalid rank. |
isInteger | public boolean isInteger()(Code) | | |
|
|
|