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

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

public final class LongRangeType
extends LongType

Represents an long 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.
 long getHighLimit()
          Gets the high limit.
 long getLowLimit()
          Gets the low limit.
 boolean getWrap()
          Determines whether wrap around is allowed for this long 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.LongType
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 long getHighLimit()
Gets the high limit.

Returns:
The high limit.

getLowLimit

public long getLowLimit()
Gets the low limit.

Returns:
The low limit.

getWrap

public boolean getWrap()
Determines whether wrap around is allowed for this long 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 LongType
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 LongType
Returns:
"long [ 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 LongType
Returns:
the node, or null if the type is undeclarable