org.holtz.zoe.zoel
Class Number
java.lang.Object
org.holtz.zoe.zoel.Expression
org.holtz.zoe.zoel.Value
org.holtz.zoe.zoel.Literal
org.holtz.zoe.zoel.Number
public class Number
- extends Literal
A numeric Literal
Operand
of a Statement
in a Zoel
program.
- Author:
- Brian Holtz
Methods inherited from class org.holtz.zoe.zoel.Value |
parse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
val
public double val
Number
public Number(double theVal)
Number
public Number(boolean theVal)
Number
public Number(Number obj2Copy)
copy
public Number copy()
- Specified by:
copy
in class Expression
toString
public java.lang.String toString(java.lang.String statementSeparator,
Expression currExpr,
java.lang.String cursor)
- Specified by:
toString
in class Expression
isTrue
public boolean isTrue()
- Specified by:
isTrue
in class Literal
toString
public java.lang.String toString()
- Specified by:
toString
in class Expression
toNumber
public double toNumber()
- Specified by:
toNumber
in class Literal