Class SourceMapWriter.Generator
- java.lang.Object
-
- de.inetsoftware.jwebassembly.sourcemap.SourceMapWriter.Generator
-
- Enclosing class:
- SourceMapWriter
private class SourceMapWriter.Generator extends java.lang.Object
The generator of the source map
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Appendable
out
private int
previousColumn
private int
previousLine
private int
previousSourceColumn
private int
previousSourceFileNameId
private int
previousSourceLine
-
Constructor Summary
Constructors Constructor Description Generator(java.lang.Appendable out)
Create an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
appendLineMappings()
Append the mappings to the source map.(package private) void
writeEntry(SourceMapping mapping)
Write a single single mapping to 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
-
-
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
-
-