Class NumberToken

java.lang.Object
ch.andre601.expressionparser.tokens.Token
ch.andre601.expressionparser.tokens.NumberToken

public class NumberToken extends Token
Token instance representing a number (double).
  • Constructor Summary

    Constructors
    Constructor
    Description
    NumberToken(double value)
    Constructor for creating a new NumberToken.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the double value stored within this instance.

    Methods inherited from class ch.andre601.expressionparser.tokens.Token

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NumberToken

      public NumberToken(double value)
      Constructor for creating a new NumberToken.
      Parameters:
      value - double value to store in this NumberToken.
  • Method Details

    • getValue

      public double getValue()
      Returns the double value stored within this instance.
      Returns:
      The double value stored within this instance.