Class SourceMapWriter.Generator
- java.lang.Object
-
- de.inetsoftware.jwebassembly.sourcemap.SourceMapWriter.Generator
-
- Enclosing class:
- SourceMapWriter
private class SourceMapWriter.Generator extends java.lang.ObjectThe generator of the source map
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Appendableoutprivate intpreviousColumnprivate intpreviousLineprivate intpreviousSourceColumnprivate intpreviousSourceFileNameIdprivate intpreviousSourceLine
-
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) voidappendLineMappings()Append the mappings to the source map.(package private) voidwriteEntry(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.IOExceptionAppend 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
-
-