public final class DataType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DataType |
BOOLEAN
Predefined logic boolean type.
|
static DataType |
INTEGER
Predefined logic integer type.
|
static int |
LOGIC_TYPE_SIZE
The LOGIC_TYPE_SIZE constant specifies the size of logic data types.
|
static DataType |
REAL
Predefined logic real type.
|
static DataType |
UNKNOWN
Predefined unknown type.
|
Modifier and Type | Method and Description |
---|---|
static DataType |
BIT_VECTOR(int size)
Returns a type describing a bit vector of the specified size.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Object[] |
getParameters() |
int |
getSize()
Returns the size of binary data in bits.
|
DataTypeId |
getTypeId()
Returns a data type identifier.
|
int |
getTypeRadix()
Returns a radix to be used for conversion data of this type to a string or vice versa.
|
java.lang.Class<?> |
getValueClass()
Returns the class that is used to store data (internal representation).
|
int |
hashCode() |
static DataType |
MAP(DataType keyType,
DataType valueType) |
static DataType |
newDataType(DataTypeId typeId,
int size) |
static DataType |
newDataType(DataTypeId typeId,
java.lang.Object... parameters)
Returns an instance of a data type object based on its attributes.
|
java.lang.String |
toString() |
static DataType |
typeOf(java.lang.String value) |
Data |
valueOf(java.lang.String value,
int radix)
Creates an instance of a data object of a corresponding data type.
|
Data |
valueUninitialized()
Creates an uninitialized data object (the value is set to null).
|
public static final int LOGIC_TYPE_SIZE
public static final DataType INTEGER
public static final DataType REAL
public static final DataType BOOLEAN
public static final DataType UNKNOWN
public static DataType BIT_VECTOR(int size)
size
- Bit vector size in bitspublic static DataType newDataType(DataTypeId typeId, int size)
public static DataType newDataType(DataTypeId typeId, java.lang.Object... parameters)
typeId
- A type identifierparameters
- The list of type parameterspublic DataTypeId getTypeId()
public int getSize()
public java.lang.Object[] getParameters()
public int getTypeRadix()
public java.lang.Class<?> getValueClass()
public Data valueOf(java.lang.String value, int radix)
value
- The text representation of a value.radix
- The radix to be used for parsing.public static DataType typeOf(java.lang.String value)
public Data valueUninitialized()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object