|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SourceMapGenerator
Collects information mapping the generated (compiled) source back to its original source for debugging purposes
| Nested Class Summary | |
|---|---|
static class |
SourceMapGenerator.Format
|
| Method Summary | |
|---|---|
void |
addMapping(String sourceName,
String symbolName,
FilePosition sourceStartPosition,
FilePosition outputStartPosition,
FilePosition outputEndPosition)
Adds a mapping for the given node. |
void |
appendTo(Appendable out,
String name)
Appends the source map to the given buffer. |
void |
reset()
Resets the source map for reuse. |
void |
setStartingPosition(int offsetLine,
int offsetIndex)
Sets the source code that exists in the buffer for which the generated code is being generated. |
void |
setWrapperPrefix(String prefix)
Sets the prefix used for wrapping the generated source file before it is written. |
void |
validate(boolean validate)
Whether to perform additional validation on the source map. |
void |
writeMetaMap(Appendable out,
String name,
List<SourceMapSection> appSections)
|
| Method Detail |
|---|
void appendTo(Appendable out,
String name)
throws IOException
out - The stream to which the map will be appended.name - The name of the generated source file that this source map
represents.
IOExceptionvoid reset()
void addMapping(String sourceName,
@Nullable
String symbolName,
FilePosition sourceStartPosition,
FilePosition outputStartPosition,
FilePosition outputEndPosition)
sourceName - The file name to use in the generate source map
to represent this source.symbolName - The symbol name associated with this position in the
source map.sourceStartPosition - The starting position in the original source for
represented range outputStartPosition to outputEndPosition in the
generated file.outputStartPosition - The position on the starting lineoutputEndPosition - The position on the ending line.void setWrapperPrefix(String prefix)
prefix - The prefix that is added before the generated source code.
void setStartingPosition(int offsetLine,
int offsetIndex)
offsetLine - The index of the current line being printed.offsetIndex - The column index of the current character being printed.void validate(boolean validate)
validate -
void writeMetaMap(Appendable out,
String name,
List<SourceMapSection> appSections)
throws IOException
out - name - appSections -
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||