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.Value
toString
in interface Jasic.Value
toString
in class java.lang.Object
public double toNumber()
Jasic.Value
toNumber
in interface Jasic.Value
public Jasic.Value evaluate()
Jasic.Expression
evaluate
in interface Jasic.Expression
Copyright © 2019. All Rights Reserved.