Package net.sourceforge.plantuml.jasic
Class Jasic.StringValue
- java.lang.Object
-
- net.sourceforge.plantuml.jasic.Jasic.StringValue
-
- All Implemented Interfaces:
Jasic.Expression,Jasic.Value
- Enclosing class:
- Jasic
public class Jasic.StringValue extends java.lang.Object implements Jasic.Value
A string value.
-
-
Constructor Summary
Constructors Constructor Description StringValue(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Jasic.Valueevaluate()Expression classes implement this to evaluate the expression and return the value.doubletoNumber()Value types override this to convert themselves to a numeric representation.java.lang.StringtoString()Value types override this to convert themselves to a string representation.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Description copied from interface:Jasic.ValueValue types override this to convert themselves to a string representation.- Specified by:
toStringin interfaceJasic.Value- Overrides:
toStringin classjava.lang.Object
-
toNumber
public double toNumber()
Description copied from interface:Jasic.ValueValue types override this to convert themselves to a numeric representation.- Specified by:
toNumberin interfaceJasic.Value
-
evaluate
public Jasic.Value evaluate()
Description copied from interface:Jasic.ExpressionExpression classes implement this to evaluate the expression and return the value.- Specified by:
evaluatein interfaceJasic.Expression- Returns:
- The value of the calculated expression.
-
-