Package ru.ispras.microtesk.model.data
Class Type
- java.lang.Object
-
- ru.ispras.microtesk.model.data.Type
-
public final class Type extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Type
BOOL(int bitSize)
static Type
CARD(int bitSize)
Type
castTo(TypeId newTypeId)
static Type
def(java.lang.String name, Type type)
boolean
equals(java.lang.Object obj)
static Type
FLOAT(int fracBitSize, int expBitSize)
int
getBitSize()
int
getFieldCount()
int
getFieldSize(int index)
TypeId
getTypeId()
int
hashCode()
static Type
INT(int bitSize)
boolean
isInteger()
Type
resize(int newBitSize)
java.lang.String
toString()
static Type
typeOf(java.lang.String name, int... params)
-
-
-
Method Detail
-
typeOf
public static Type typeOf(java.lang.String name, int... params)
-
INT
public static Type INT(int bitSize)
-
CARD
public static Type CARD(int bitSize)
-
BOOL
public static Type BOOL(int bitSize)
-
FLOAT
public static Type FLOAT(int fracBitSize, int expBitSize)
-
isInteger
public boolean isInteger()
-
resize
public Type resize(int newBitSize)
-
getTypeId
public TypeId getTypeId()
-
getBitSize
public int getBitSize()
-
getFieldCount
public int getFieldCount()
-
getFieldSize
public int getFieldSize(int index)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-