public class InfExpression extends Expression
| Constructor and Description |
|---|
InfExpression(int sign)
Constructs an inf expression with the specified sign.
|
| Modifier and Type | Method and Description |
|---|---|
InfExpression |
clone()
Returns a clone of the inf expression.
|
int |
compareTo(Expression e) |
static void |
defaultPrint(InfExpression e,
java.io.PrintWriter o)
Prints the expression to the specified target.
|
boolean |
equals(java.lang.Object o)
Compares the expression with the specified object.
|
int |
sign()
Returns the sign of the infinity expression.
|
java.lang.String |
toString()
Returns a string representation of the expression
|
findExpression, getChildren, getParent, getStatement, hashCode, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verifypublic InfExpression(int sign)
sign - the sign of the infinity expressionpublic InfExpression clone()
clone in class Expressionpublic static void defaultPrint(InfExpression e, java.io.PrintWriter o)
e - the expression to print.o - the writer on which to print the expression.public java.lang.String toString()
ExpressiontoString in class Expressionpublic boolean equals(java.lang.Object o)
equals in class Expressiono - the object to be compared with.o!=null, this.getClass()==o.getClass(),
and this.children.equals(o.children) ||
this.children==o.children==nullpublic int compareTo(Expression e)
compareTo in interface java.lang.Comparable<Expression>compareTo in class Expressionpublic int sign()