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

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
                  extended by edu.ksu.cis.projects.bogor.type.IntRangeType
All Implemented Interfaces:
Disposable, Serializable

public final class IntRangeType
extends IntType

Represents an int range type.

Version:
CVS $Revision: 1.3 $ $Date: 2005/05/04 17:28:26 $
Author:
Robby
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.ksu.cis.projects.bogor.type.Type
hashCode, typeId
 
Method Summary
 boolean equals(Object o)
          Checks whether this object is equal to another object.
 int getHighLimit()
          Gets the high limit.
 int getLowLimit()
          Gets the low limit.
 boolean getWrap()
          Determines whether wrap around is allowed for this int range type.
 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.IntType
dispose
 
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

getHighLimit

public int getHighLimit()
Gets the high limit.

Returns:
The high limit.

getLowLimit

public int getLowLimit()
Gets the low limit.

Returns:
The low limit.

getWrap

public boolean getWrap()
Determines whether wrap around is allowed for this int range type.

Returns:
True, if wrap around is allowed. False, otherwise.

equals

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

Overrides:
equals in class IntType
Parameters:
o - Another object to check equality to.
Returns:
True, if the range is the same. False, otherwise.

toString

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

Overrides:
toString in class IntType
Returns:
"int [ wrap ](lowLimit, highLimit)".

toASTType

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

Overrides:
toASTType in class IntType
Returns:
the node, or null if the type is undeclarable