Class Token


  • public class Token
    extends java.lang.Object
    Token information used for syntax highlighting.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long location
      Token location, basically consisting of start and end line and position numbers, packed into a 64-bit long integer.
      TokenType type
      Token type.
    • Constructor Summary

      Constructors 
      Constructor Description
      Token​(TokenType type, long location)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • type

        public final TokenType type
        Token type.
      • location

        public final long location
        Token location, basically consisting of start and end line and position numbers, packed into a 64-bit long integer. Use methods in the Location class to decode start and end line and position numbers.
    • Constructor Detail

      • Token

        public Token​(TokenType type,
                     long location)
    • Method Detail

      • toString

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