Class Token

  • Direct Known Subclasses:
    Operator, Unresolved, Variable

    public abstract class Token
    extends java.lang.Object
    Base class for various types of tokens: operators, groups, functions and variables.

    The only exception are literals, which use the standard Java types of String, Boolean and Number rather than extending this class.

    Author:
    Curtis Rueden
    • Constructor Summary

      Constructors 
      Constructor Description
      Token​(java.lang.String token)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getToken()
      Gets the token's sequence of characters.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Token

        public Token​(java.lang.String token)
    • Method Detail

      • getToken

        public java.lang.String getToken()
        Gets the token's sequence of characters.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object