| 
 | " 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 | BYTEDefine secondary types. | 
| static int | Code_AOpcode subtype codes. | 
| static int | Code_BOpcode subtype codes. | 
| static int | Code_COpcode subtype codes. | 
| static int | Code_DOpcode subtype codes. | 
| static int | Code_FOpcode subtype codes. | 
| static int | Code_GOpcode subtype codes. | 
| static int | Code_IOpcode subtype codes. | 
| static int | Code_LOpcode subtype codes. | 
| static int | Code_OOpcode subtype codes. | 
| static int | Code_ROpcode subtype codes. | 
| static int | Code_SOpcode subtype codes. | 
| static int | Code_UOpcode subtype codes. | 
| static int | Code_VOpcode subtype codes. | 
| static Type | DOUBLEDefine primary types. | 
| static Type | FLOATDefine primary types. | 
| static Type | INTDefine primary types. | 
| static Type | IPSpecial dummy types for specifing the MP, IP and LP variables. | 
| static Type | LONGDefine primary types. | 
| static Type | LPSpecial dummy types for specifing the MP, IP and LP variables. | 
| static Type | MPSpecial dummy types for specifing the MP, IP and LP variables. | 
| static Type | OOPDefine primary types. | 
| static Type | REFDefine primary types. | 
| static int | RELOC_ABSOLUTE_INTRelocation type for absolute int addresses. | 
| static int | RELOC_RELATIVE_INTRelocation type for relative int addresses. | 
| static Type | SHORTDefine secondary types. | 
| static Type | SSSpecial dummy types for specifing the MP, IP and LP variables. | 
| static Type | UBYTEDefine secondary types. | 
| static Type | UINTDefine primary types. | 
| static Type | ULONGDefine primary types. | 
| static Type | USHORTDefine secondary types. | 
| static Type | UWORDDefine the size of stack entries. | 
| static Type | VOIDSpecial dummy type for call and return. | 
| static Type | WORDDefine 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 type
public 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 type| Method 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 Objectpublic void print()
| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||