Class JavacTokens.RawTok

  • Enclosing class:
    JavacTokens

    static class JavacTokens.RawTok
    extends java.lang.Object
    An unprocessed input token, including whitespace and comments.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int endPos  
      private com.sun.tools.javac.parser.Tokens.TokenKind kind  
      private int pos  
      private java.lang.String stringVal  
    • Constructor Summary

      Constructors 
      Constructor Description
      RawTok​(java.lang.String stringVal, com.sun.tools.javac.parser.Tokens.TokenKind kind, int pos, int endPos)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int endPos()
      The end position.
      com.sun.tools.javac.parser.Tokens.TokenKind kind()
      The token kind, or null for whitespace and comments.
      int pos()
      The start position.
      java.lang.String stringVal()
      The escaped string value of a literal, or null for other tokens.
      • Methods inherited from class java.lang.Object

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

      • stringVal

        private final java.lang.String stringVal
      • kind

        private final com.sun.tools.javac.parser.Tokens.TokenKind kind
      • pos

        private final int pos
      • endPos

        private final int endPos
    • Constructor Detail

      • RawTok

        RawTok​(java.lang.String stringVal,
               com.sun.tools.javac.parser.Tokens.TokenKind kind,
               int pos,
               int endPos)
    • Method Detail

      • kind

        public com.sun.tools.javac.parser.Tokens.TokenKind kind()
        The token kind, or null for whitespace and comments.
      • pos

        public int pos()
        The start position.
      • endPos

        public int endPos()
        The end position.
      • stringVal

        public java.lang.String stringVal()
        The escaped string value of a literal, or null for other tokens.