public class Jasic.NumberValue extends java.lang.Object implements Jasic.Value
| Constructor and Description |
|---|
NumberValue(double value) |
| Modifier and Type | Method and Description |
|---|---|
Jasic.Value |
evaluate()
Expression classes implement this to evaluate the expression and return the
value.
|
double |
toNumber()
Value types override this to convert themselves to a numeric representation.
|
java.lang.String |
toString()
Value types override this to convert themselves to a string representation.
|
public java.lang.String toString()
Jasic.ValuetoString in interface Jasic.ValuetoString in class java.lang.Objectpublic double toNumber()
Jasic.ValuetoNumber in interface Jasic.Valuepublic Jasic.Value evaluate()
Jasic.Expressionevaluate in interface Jasic.Expression