Class ArrayToken


  • public final class ArrayToken
    extends Token
    Token for an array that has an index. Must be a positive number
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayToken​(int index)
      Must be a positive number.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int getIndex()
      array index for this token.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArrayToken

        public ArrayToken​(int index)
        Must be a positive number.
        Parameters:
        index - for the array token
    • Method Detail

      • getIndex

        public int getIndex()
        array index for this token.
        Returns:
        index
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object