coins.backend
Class Type
java.lang.Object
coins.backend.Type
- public class Type
- extends java.lang.Object
LIR type encoder/decoder without instance.
Type is represented by an int, not an instance of the class.
|
Method Summary |
static int |
bits(int type)
|
static int |
bytes(int type)
|
static int |
decode(java.lang.String word)
|
static boolean |
isAggregate(int type)
|
static int |
tag(int type)
|
static java.lang.String |
toString(int type)
|
static int |
type(int tag,
long bits)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
AGGREGATE
public static final int AGGREGATE
- See Also:
- Constant Field Values
INT
public static final int INT
- See Also:
- Constant Field Values
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
toString
public static java.lang.String toString(int type)
isAggregate
public static boolean isAggregate(int type)
tag
public static int tag(int type)
bits
public static int bits(int type)
bytes
public static int bytes(int type)
type
public static int type(int tag,
long bits)
decode
public static int decode(java.lang.String word)
throws SyntaxError
- Throws:
SyntaxError