|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.transjvm.TypeID
public abstract class TypeID
A Class representing JVM types.
Field Summary | |
---|---|
static TypeID |
BOOLEAN
Boolean (true or false) type. |
static TypeID |
BYTE
8 bit signed integer type. |
static TypeID |
CHAR
16 bit unicode character type. |
static TypeID |
CLASS
java.lang.Class |
static TypeID |
DOUBLE
Alias for REAL64 |
static TypeID |
FLOAT
Alias for REAL32 |
static TypeID |
INT
Alias for INT32 |
static TypeID |
INT16
16 bit signed integer type. |
static TypeID |
INT32
32 bit signed integer type. |
static TypeID |
INT64
64 bit signed integer type. |
static TypeID |
LONG
Alias for INT64 |
static TypeID |
OBJECT
java.lang.Object |
static TypeID |
REAL32
32 bit floating point type. |
static TypeID |
REAL64
64 bit floating point type. |
static TypeID |
SHORT
Alias for INT16 |
static TypeID |
STRING
java.lang.String |
static TypeID |
THROWABLE
java.lang.Throwable |
static TypeID |
VOID
Pseudo-type for return type of subroutines. |
Method Summary | |
---|---|
TypeID |
array()
Returns the TypeID for the array of this TypeID. |
TypeID |
component()
Returns the TypeID for the component type of this array type. |
boolean |
equals(java.lang.Object other)
|
static TypeID |
forName(java.lang.String name)
Returns the TypeID for the named class. |
java.lang.String |
getDescriptor()
Returns the descriptor for this type. |
int |
hashCode()
|
boolean |
isArray()
True if this TypeID is an array, ie it is not a primitive or a class. |
boolean |
isPrimitive()
True if this TypeID is a primitive, ie it is not a class or an array. |
java.lang.String |
toString()
Returns a short name for this type. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final TypeID BYTE
public static final TypeID CHAR
public static final TypeID INT16
public static final TypeID INT32
public static final TypeID INT64
public static final TypeID BOOLEAN
public static final TypeID REAL32
public static final TypeID REAL64
public static final TypeID VOID
public static final TypeID OBJECT
public static final TypeID STRING
public static final TypeID THROWABLE
public static final TypeID CLASS
public static final TypeID DOUBLE
public static final TypeID FLOAT
public static final TypeID LONG
public static final TypeID INT
public static final TypeID SHORT
Method Detail |
---|
public java.lang.String getDescriptor()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isPrimitive()
public boolean isArray()
public static TypeID forName(java.lang.String name)
public final TypeID array()
type.array().component() == type
is always true.
public TypeID component()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |