|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.javascript.jscomp.SourceMapLegacy
public class SourceMapLegacy
Collects information mapping the generated (compiled) source back to its original source for debugging purposes.
CodeConsumer,
CodeGenerator,
CodePrinter| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.google.javascript.jscomp.SourceMap |
|---|
SourceMap.DetailLevel, SourceMap.Format |
| Constructor Summary | |
|---|---|
SourceMapLegacy()
|
|
| Method Summary | |
|---|---|
void |
addMapping(Node node,
com.google.javascript.jscomp.Position startPosition,
com.google.javascript.jscomp.Position endPosition)
Adds a mapping for the given node. |
void |
appendTo(Appendable out,
String name)
Appends the source map in LavaBug format to the given buffer. |
void |
reset()
Resets the source map for reuse for the generation of a new source file. |
void |
setStartingPosition(int offsetLine,
int offsetIndex)
Sets the source code that exists in the buffer to which the generated code is being generated. |
void |
setWrapperPrefix(String prefix)
Sets the prefix used for wrapping the generated source file before it is output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceMapLegacy()
| Method Detail |
|---|
public void addMapping(Node node,
com.google.javascript.jscomp.Position startPosition,
com.google.javascript.jscomp.Position endPosition)
addMapping in interface SourceMapnode - The node that the new mapping represents.startPosition - The position on the starting lineendPosition - The position on the ending line.public void setWrapperPrefix(String prefix)
setWrapperPrefix in interface SourceMapprefix - The prefix that is added before the generated source code.
public void setStartingPosition(int offsetLine,
int offsetIndex)
setStartingPosition in interface SourceMapoffsetLine - The index of the current line being printed.offsetIndex - The column index of the current character being printed.public void reset()
reset in interface SourceMap
public void appendTo(Appendable out,
String name)
throws IOException
appendTo in interface SourceMapout - The stream to which the map will be appended.name - The name of the generated source file that this source map
represents.
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||