Class SourceFile.LineNumberMapBuilder

  • Enclosing class:
    SourceFile

    private static class SourceFile.LineNumberMapBuilder
    extends java.lang.Object
    Helper object to build map of line number to byte offset for a source file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void add​(int ch)  
      void addData​(byte[] data, int len)  
      void eof()  
      • Methods inherited from class java.lang.Object

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

      • offset

        private int offset
      • lastSeen

        private int lastSeen
    • Constructor Detail

      • LineNumberMapBuilder

        public LineNumberMapBuilder​(SourceFile sourceFile)
    • Method Detail

      • addData

        public void addData​(byte[] data,
                            int len)
      • eof

        public void eof()
      • add

        private void add​(int ch)