|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.squawk.compiler.Type
public class Type
Type representation and types for the Compiler
.
Field Summary | |
---|---|
static Type |
BYTE
Define secondary types. |
static int |
Code_A
Opcode subtype codes. |
static int |
Code_B
Opcode subtype codes. |
static int |
Code_C
Opcode subtype codes. |
static int |
Code_D
Opcode subtype codes. |
static int |
Code_F
Opcode subtype codes. |
static int |
Code_G
Opcode subtype codes. |
static int |
Code_I
Opcode subtype codes. |
static int |
Code_L
Opcode subtype codes. |
static int |
Code_O
Opcode subtype codes. |
static int |
Code_R
Opcode subtype codes. |
static int |
Code_S
Opcode subtype codes. |
static int |
Code_U
Opcode subtype codes. |
static int |
Code_V
Opcode subtype codes. |
static Type |
DOUBLE
Define primary types. |
static Type |
FLOAT
Define primary types. |
static Type |
INT
Define primary types. |
static Type |
IP
Special dummy types for specifing the MP, IP and LP variables. |
static Type |
LONG
Define primary types. |
static Type |
LP
Special dummy types for specifing the MP, IP and LP variables. |
static Type |
MP
Special dummy types for specifing the MP, IP and LP variables. |
static Type |
OOP
Define primary types. |
static Type |
REF
Define primary types. |
static int |
RELOC_ABSOLUTE_INT
Relocation type for absolute int addresses. |
static int |
RELOC_RELATIVE_INT
Relocation type for relative int addresses. |
static Type |
SHORT
Define secondary types. |
static Type |
SS
Special dummy types for specifing the MP, IP and LP variables. |
static Type |
UBYTE
Define secondary types. |
static Type |
UINT
Define primary types. |
static Type |
ULONG
Define primary types. |
static Type |
USHORT
Define secondary types. |
static Type |
UWORD
Define the size of stack entries. |
static Type |
VOID
Special dummy type for call and return. |
static Type |
WORD
Define the size of stack entries. |
Constructor Summary | |
---|---|
Type(int asize,
int osize,
int code,
String name)
Constructor. |
|
Type(int asize,
int osize,
int code,
Type primitive,
String name)
Constructor. |
Method Summary | |
---|---|
int |
getActivationSize()
Get the activation record size. |
Type |
getPrimitiveType()
Get the primitive version of the type. |
int |
getStructureSize()
Get the structure size. |
int |
getTypeCode()
Get the opcode code. |
boolean |
isOop()
Test the type to see if it is an oop |
boolean |
isPointer()
Test the type to see if it is a pointer |
boolean |
isPrimary()
Test the type to see if it is a primary type. |
boolean |
isRef()
Test the type to see if it is a reference |
boolean |
isSecondary()
Test the type to see if it is a secondary type. |
boolean |
isSigned()
Test the type to see if it is a signed type. |
void |
print()
Prints to stderr information about this type. |
String |
toString()
Gets the name of the type |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int Code_V
public static final int Code_R
public static final int Code_O
public static final int Code_I
public static final int Code_U
public static final int Code_L
public static final int Code_F
public static final int Code_D
public static final int Code_B
public static final int Code_A
public static final int Code_S
public static final int Code_C
public static final int Code_G
public static final Type REF
public static final Type OOP
public static final Type INT
public static final Type UINT
public static final Type LONG
public static final Type ULONG
public static final Type FLOAT
public static final Type DOUBLE
public static final Type BYTE
public static final Type UBYTE
public static final Type SHORT
public static final Type USHORT
public static final Type VOID
public static final Type MP
public static final Type IP
public static final Type LP
public static final Type SS
public static final Type WORD
public static final Type UWORD
public static final int RELOC_ABSOLUTE_INT
public static final int RELOC_RELATIVE_INT
Constructor Detail |
---|
public Type(int asize, int osize, int code, String name)
asize
- the size in words for this type in an activation recordosize
- the size in bytes for this type in an object or arraycode
- the type code the form the bottom 4 bits of the IR opcodesname
- the name if the typepublic Type(int asize, int osize, int code, Type primitive, String name)
asize
- the size in words for this type in an activation recordosize
- the size in bytes for this type in an object or arraycode
- the type code the form the bottom 4 bits of the IR opcodesprimitive
- type for this typename
- the name if the typeMethod Detail |
---|
public int getActivationSize()
public int getStructureSize()
public int getTypeCode()
public Type getPrimitiveType()
public boolean isPointer()
public boolean isOop()
public boolean isRef()
public boolean isPrimary()
public boolean isSecondary()
public boolean isSigned()
public String toString()
toString
in class Object
public void print()
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |