|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.plantuml.jasic.Jasic.NumberValue
public class Jasic.NumberValue
A numeric value. Jasic uses doubles internally for all numbers.
Constructor Summary | |
---|---|
Jasic.NumberValue(double value)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Jasic.NumberValue(double value)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |