Class Token


  • @Immutable
    public final class Token
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private @Nullable java.lang.String data  
      private @NotNull TokenType type  
    • Constructor Summary

      Constructors 
      Constructor Description
      Token​(@NotNull TokenType type)  
      Token​(@NotNull TokenType type, @Nullable java.lang.String data)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.lang.String data()  
      java.lang.String toString()  
      @NotNull TokenType type()  
      • Methods inherited from class java.lang.Object

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

      • type

        @NotNull
        private final @NotNull TokenType type
      • data

        @Nullable
        private final @Nullable java.lang.String data
    • Constructor Detail

      • Token

        public Token​(@NotNull
                     @NotNull TokenType type)
      • Token

        public Token​(@NotNull
                     @NotNull TokenType type,
                     @Nullable
                     @Nullable java.lang.String data)
    • Method Detail

      • type

        @NotNull
        public @NotNull TokenType type()
      • data

        @Nullable
        public @Nullable java.lang.String data()
      • toString

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