All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.PrimitiveType

java.lang.Object
   |
   +----openjava.ptree.PtreeObject
           |
           +----openjava.ptree.Leaf
                   |
                   +----openjava.ptree.PrimitiveType

public class PrimitiveType
extends Leaf
implements TypeName
The PrimitiveType class presents primitive type node of parse tree.

See Also:
Ptree, Leaf

Variable Index

 o BOOLEAN
 o BYTE
 o CHAR
 o DOUBLE
 o FLOAT
 o INT
 o LONG
 o SHORT
 o VOID

Constructor Index

 o PrimitiveType(int)

Method Index

 o getKind()
 o getType()
Obtains the id number of this primitive type.
 o writeCode()
Writes the code of this token.

Variables

 o BOOLEAN
 public static final int BOOLEAN
 o CHAR
 public static final int CHAR
 o BYTE
 public static final int BYTE
 o SHORT
 public static final int SHORT
 o INT
 public static final int INT
 o LONG
 public static final int LONG
 o FLOAT
 public static final int FLOAT
 o DOUBLE
 public static final int DOUBLE
 o VOID
 public static final int VOID

Constructors

 o PrimitiveType
 public PrimitiveType(int id)

Methods

 o writeCode
 public void writeCode()
Writes the code of this token.

Overrides:
writeCode in class Leaf
 o getType
 public int getType()
Obtains the id number of this primitive type.

Returns:
the id number
 o getKind
 public int getKind()

All Packages  Class Hierarchy  This Package  Previous  Next  Index