Class Variable

java.lang.Object
redempt.crunch.Variable
All Implemented Interfaces:
Cloneable, Token, Value

public class Variable extends Object implements Value
  • Constructor Details

    • Variable

      public Variable(int index)
  • Method Details

    • getIndex

      public int getIndex()
    • getValue

      public double getValue(double[] variableValues)
      Specified by:
      getValue in interface Value
    • getType

      public TokenType getType()
      Specified by:
      getType in interface Token
      Returns:
      The type of this Token
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getClone

      public Variable getClone()
      Specified by:
      getClone in interface Value