Class Jasic.StringValue

    • Constructor Detail

      • StringValue

        public StringValue​(String value)
    • Method Detail

      • 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.