|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.toronto.cs.expr.NullaryOperator
edu.toronto.cs.expr.RationalOp
public class RationalOp
Constructor Summary | |
---|---|
RationalOp(int _n,
int _d)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object v)
|
int |
getD()
|
int |
getN()
|
int |
hashCode()
|
java.lang.String |
name()
Name of this operator |
Methods inherited from class edu.toronto.cs.expr.NullaryOperator |
---|
arity, isWellFormed |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RationalOp(int _n, int _d)
Method Detail |
---|
public java.lang.String name()
Operator
String
valuepublic boolean equals(java.lang.Object v)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getN()
public int getD()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |