Class Token


  • public class Token
    extends java.lang.Object
    A token represents a single part of an expression, like an operator, number literal, or a brace. Each token has a unique type, a value (its representation) and a position (starting with 1) in the original expression string.

    For operators and functions, the operator and function definition is also set during parsing.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Token.TokenType  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • Token

        public Token​(int startPosition,
                     java.lang.String value,
                     Token.TokenType type)