java.lang.Object
ch.andre601.expressionparser.tokens.Token
Direct Known Subclasses:
BooleanToken, NumberToken, StringToken

public class Token extends Object
Class used to create Tokens.
Tokens are created by the ExpressionTokenizer which converts a String using ValueReaders.
  • Constructor Details

    • Token

      public Token(String id)
      Constructor for creating a new Token.
      Parameters:
      id - ID for the Token to have.
  • Method Details

    • toString

      public String toString()
      Returns the set ID of the Token.
      Overrides:
      toString in class Object
      Returns:
      ID of the Token.