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

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

public class IntType
extends IntegralType

Represents the int type.

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

Field Summary
 
Fields inherited from class edu.ksu.cis.projects.bogor.type.Type
hashCode, typeId
 
Method Summary
 void dispose()
          Removes references.
 boolean equals(Object o)
          Checks whether this object is equal to another object.
 ASTType toASTType()
          Get a newly constructed (unowned) syntax tree node suitable for declaring this type statically.
 String toString()
          Returns the string representation of this object.
 
Methods inherited from class edu.ksu.cis.projects.bogor.type.Type
getTypeId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

dispose

public void dispose()
Removes references. Once called, avoid using this object.


equals

public boolean equals(Object o)
Checks whether this object is equal to another object.

Overrides:
equals in class Object
Parameters:
o - Another object to check equality to.
Returns:
True, if the other object is also a IntType. False, otherwise.

toString

public String toString()
Returns the string representation of this object.

Overrides:
toString in class Object
Returns:
"int".

toASTType

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

Specified by:
toASTType in class Type
Returns:
the node, or null if the type is undeclarable