public class FractionNode extends NumberNode
Modifier and Type | Field and Description |
---|---|
protected IntegerNode |
fDenominator |
protected IntegerNode |
fNumerator |
sign
fStringValue
Constructor and Description |
---|
FractionNode(IntegerNode numerator,
IntegerNode denominator) |
Modifier and Type | Method and Description |
---|---|
double |
doubleValue() |
boolean |
equals(java.lang.Object obj) |
IntegerNode |
getDenominator() |
IntegerNode |
getNumerator() |
int |
hashCode() |
java.lang.String |
toString() |
getString, isSign, toggleSign
protected final IntegerNode fNumerator
protected final IntegerNode fDenominator
public FractionNode(IntegerNode numerator, IntegerNode denominator)
public IntegerNode getDenominator()
public IntegerNode getNumerator()
public java.lang.String toString()
toString
in class NumberNode
public double doubleValue()
doubleValue
in class NumberNode
public boolean equals(java.lang.Object obj)
equals
in class NumberNode
public int hashCode()
hashCode
in class NumberNode