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 Object implements Jasic.Value
A string value.
  • Constructor Details

    • StringValue

      public StringValue(String value)
  • Method Details

    • toString

      public String toString()
      Description copied from interface: Jasic.Value
      Value types override this to convert themselves to a string representation.
      Specified by:
      toString in interface Jasic.Value
      Overrides:
      toString in class Object
    • toNumber

      public double toNumber()
      Description copied from interface: Jasic.Value
      Value types override this to convert themselves to a numeric representation.
      Specified by:
      toNumber in interface Jasic.Value
    • evaluate

      public Jasic.Value evaluate()
      Description copied from interface: Jasic.Expression
      Expression classes implement this to evaluate the expression and return the value.
      Specified by:
      evaluate in interface Jasic.Expression
      Returns:
      The value of the calculated expression.