public class Jasic.NumberValue extends 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.
|
String |
toString()
Value types override this to convert themselves to a string
representation.
|
public String toString()
Jasic.Value
toString
in interface Jasic.Value
toString
in class Object
public double toNumber()
Jasic.Value
toNumber
in interface Jasic.Value
public Jasic.Value evaluate()
Jasic.Expression
evaluate
in interface Jasic.Expression
Copyright © 2016. All Rights Reserved.