edu.ksu.cis.projects.bogor.type
Class Type

java.lang.Object
  extended by edu.ksu.cis.projects.bogor.type.Type
All Implemented Interfaces:
Disposable, Serializable
Direct Known Subclasses:
NonPrimitiveType, PrimitiveType, UnknownType, VoidType

public abstract class Type
extends Object
implements Disposable, Serializable

Top level class of any type.

Version:
CVS $Revision: 1.3 $ $Date: 2005/01/29 04:54:31 $
Author:
Robby
See Also:
Serialized Form

Field Summary
protected  int hashCode
          Holds the hash code of this object.
protected  int typeId
          Holds the type id of this type.
 
Constructor Summary
Type()
           
 
Method Summary
 int getTypeId()
          Gets the type id of this type.
 int hashCode()
          Gets the hash code of this object.
abstract  ASTType toASTType()
          Get a newly constructed (unowned) syntax tree node suitable for declaring this type statically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.ksu.cis.projects.bogor.util.Disposable
dispose
 

Field Detail

hashCode

protected int hashCode
Holds the hash code of this object. The hash code is based on the string representation of this object.


typeId

protected int typeId
Holds the type id of this type.

Constructor Detail

Type

public Type()
Method Detail

getTypeId

public int getTypeId()
Gets the type id of this type.

Returns:
The type id of this type.

hashCode

public int hashCode()
Gets the hash code of this object.

Overrides:
hashCode in class Object
Returns:
The hash code of this object.

toASTType

public abstract ASTType toASTType()
Get a newly constructed (unowned) syntax tree node suitable for declaring this type statically.

Returns:
the node, or null if the type is undeclarable