public class StorageType extends Type
Modifier and Type | Field and Description |
---|---|
static int |
Boolean |
static int |
Byte |
static int |
Char |
static int |
Double |
static int |
Float |
static int |
Int |
static int |
Long |
static int |
Record |
static int |
Short |
static int |
Undefined |
static int |
Unsigned_Byte |
static int |
Unsigned_Short |
static int |
UnsignedByte |
static int |
UnsignedShort |
Modifier and Type | Method and Description |
---|---|
static int |
byteSize(int type)
Return the length in bytes of the "basic" StorageTypes.
|
static int |
getNumStorageTypes()
Return the number of distinct StorageTypes.
|
static java.lang.String |
intToTypeString(int type)
returns a String of the name of the type indicated by the argument.
|
static boolean |
isSimpleStorageType(int type)
Returns true if the argument is a valid StorageType value, except
for StorageType.Record.
|
static boolean |
isStorageType(int type)
Returns true if the argument is a valid StorageType value, false otherwise.
|
static void |
main(java.lang.String[] args) |
static java.lang.String |
name(int type)
returns a String of the name of the type indicated by the argument.
|
java.lang.String |
toString()
Return this StorageType represented as a nicely formatted String.
|
static int |
typeStringtoInt(java.lang.String type)
Returns a valid type constant if the String argument is a valid type string.
|
public static final int Undefined
public static final int Boolean
public static final int Byte
public static final int Unsigned_Byte
public static final int UnsignedByte
public static final int Char
public static final int Short
public static final int Unsigned_Short
public static final int UnsignedShort
public static final int Int
public static final int Float
public static final int Double
public static final int Long
public static final int Record
public static int typeStringtoInt(java.lang.String type)
public static final java.lang.String intToTypeString(int type)
public static java.lang.String name(int type)
public static final boolean isStorageType(int type)
public static final boolean isSimpleStorageType(int type)
public java.lang.String toString()
public static final int getNumStorageTypes()
public static int byteSize(int type)
public static void main(java.lang.String[] args)