Class SourceMapWriter.Generator

  • Enclosing class:
    SourceMapWriter

    private class SourceMapWriter.Generator
    extends java.lang.Object
    The generator of the source map
    • Field Detail

      • out

        private final java.lang.Appendable out
      • previousLine

        private int previousLine
      • previousColumn

        private int previousColumn
      • previousSourceFileNameId

        private int previousSourceFileNameId
      • previousSourceLine

        private int previousSourceLine
      • previousSourceColumn

        private int previousSourceColumn
    • Constructor Detail

      • Generator

        Generator​(java.lang.Appendable out)
        Create an instance.
        Parameters:
        out - the target for the source map
    • Method Detail

      • appendLineMappings

        void appendLineMappings()
                         throws java.io.IOException
        Append the mappings to the source map.
        Throws:
        java.io.IOException - if any I/O error occur
      • writeEntry

        void writeEntry​(SourceMapping mapping)
                 throws java.io.IOException
        Write a single single mapping to the source map.
        Parameters:
        mapping - the mapping
        Throws:
        java.io.IOException - if any I/O error occur