Class JavacTokens.CommentSavingTokenizer

  • Enclosing class:
    JavacTokens

    static class JavacTokens.CommentSavingTokenizer
    extends com.sun.tools.javac.parser.JavaTokenizer
    A JavaTokenizer that saves comments.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.sun.tools.javac.parser.JavaTokenizer

        com.sun.tools.javac.parser.JavaTokenizer.BasicComment<U extends com.sun.tools.javac.parser.UnicodeReader>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<com.sun.tools.javac.parser.Tokens.Comment,​JavacTokens.CommentWithTextAndPosition> comments  
      • Fields inherited from class com.sun.tools.javac.parser.JavaTokenizer

        errPos, fac, name, radix, reader, tk
    • Constructor Summary

      Constructors 
      Constructor Description
      CommentSavingTokenizer​(com.sun.tools.javac.parser.ScannerFactory fac, char[] buffer, int length)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.util.Map<com.sun.tools.javac.parser.Tokens.Comment,​JavacTokens.CommentWithTextAndPosition> comments()  
      private char[] getRawCharactersReflectively​(int beginIndex, int endIndex)  
      protected com.sun.tools.javac.parser.Tokens.Comment processComment​(int pos, int endPos, com.sun.tools.javac.parser.Tokens.Comment.CommentStyle style)  
      • Methods inherited from class com.sun.tools.javac.parser.JavaTokenizer

        checkSourceLevel, errPos, errPos, getLineMap, lexError, lexError, processLineTerminator, processWhiteSpace, readToken
      • Methods inherited from class java.lang.Object

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

      • CommentSavingTokenizer

        CommentSavingTokenizer​(com.sun.tools.javac.parser.ScannerFactory fac,
                               char[] buffer,
                               int length)
    • Method Detail

      • processComment

        protected com.sun.tools.javac.parser.Tokens.Comment processComment​(int pos,
                                                                           int endPos,
                                                                           com.sun.tools.javac.parser.Tokens.Comment.CommentStyle style)
        Overrides:
        processComment in class com.sun.tools.javac.parser.JavaTokenizer
      • getRawCharactersReflectively

        private char[] getRawCharactersReflectively​(int beginIndex,
                                                    int endIndex)