cetus.hir
Class InfExpression

java.lang.Object
  extended by cetus.hir.Expression
      extended by cetus.hir.InfExpression
All Implemented Interfaces:
Printable, Traversable, java.lang.Cloneable, java.lang.Comparable<Expression>

public class InfExpression
extends Expression

Class InfExpression expresses infinity states of values.


Field Summary
 
Fields inherited from class cetus.hir.Expression
children, needs_parens, object_print_method, parent
 
Constructor Summary
InfExpression(int sign)
          Constructor
 
Method Summary
 java.lang.Object clone()
          Clone method
 int compareTo(Expression e)
           
static void defaultPrint(InfExpression inf, java.io.OutputStream stream)
          Default print method
 boolean equals(java.lang.Object o)
           
 int sign()
          Returns the sign of the infinity expression
 java.lang.String toString()
          Converts the expression to String
 
Methods inherited from class cetus.hir.Expression
equals2, findExpression, getChildren, getParent, getStatement, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verify
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InfExpression

public InfExpression(int sign)
Constructor

Parameters:
sign - the sign of the infinity expression
Method Detail

clone

public java.lang.Object clone()
Clone method

Overrides:
clone in class Expression
Returns:
a deep copy of this expression.

defaultPrint

public static void defaultPrint(InfExpression inf,
                                java.io.OutputStream stream)
Default print method


toString

public java.lang.String toString()
Converts the expression to String

Overrides:
toString in class Expression

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Expression

compareTo

public int compareTo(Expression e)
Specified by:
compareTo in interface java.lang.Comparable<Expression>
Overrides:
compareTo in class Expression

sign

public int sign()
Returns the sign of the infinity expression