Class Token


  • final class Token
    extends java.lang.Object
    Javadoc token. Our idea of what constitutes a token is often larger or smaller than what you'd naturally expect. The decision is usually pragmatic rather than theoretical. Most of the details are in JavadocLexer.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  Token.Type
      Javadoc token type.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Token.Type type  
      private java.lang.String value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Token​(Token.Type type, java.lang.String value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) Token.Type getType()  
      (package private) java.lang.String getValue()  
      (package private) int length()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • value

        private final java.lang.String value
    • Constructor Detail

      • Token

        Token​(Token.Type type,
              java.lang.String value)
    • Method Detail

      • getValue

        java.lang.String getValue()
      • length

        int length()
      • toString

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