|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.debugging.sourcemap.SourceMapConsumerV3
public class SourceMapConsumerV3
Class for parsing version 3 of the SourceMap format, as produced by the Closure Compiler, etc. http://code.google.com/p/closure-compiler/wiki/SourceMaps
Nested Class Summary | |
---|---|
static interface |
SourceMapConsumerV3.EntryVisitor
|
Constructor Summary | |
---|---|
SourceMapConsumerV3()
|
Method Summary | |
---|---|
Mapping.OriginalMapping |
getMappingForLine(int lineNumber,
int column)
Returns the original mapping for the line number and column position found in the source map. |
Collection<String> |
getOriginalSources()
|
Collection<Mapping.OriginalMapping> |
getReverseMapping(String originalFile,
int line,
int column)
Given a source file, line, and column, return the reverse mapping (source --> target). |
void |
parse(org.json.JSONObject sourceMapRoot)
Parses the given contents containing a source map. |
void |
parse(org.json.JSONObject sourceMapRoot,
SourceMapSupplier sectionSupplier)
Parses the given contents containing a source map. |
void |
parse(String contents)
Parses the given contents containing a source map. |
void |
parse(String contents,
SourceMapSupplier sectionSupplier)
Parses the given contents containing a source map. |
void |
visitMappings(SourceMapConsumerV3.EntryVisitor visitor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceMapConsumerV3()
Method Detail |
---|
public void parse(String contents) throws SourceMapParseException
parse
in interface SourceMapConsumer
SourceMapParseException
public void parse(String contents, SourceMapSupplier sectionSupplier) throws SourceMapParseException
SourceMapParseException
public void parse(org.json.JSONObject sourceMapRoot) throws SourceMapParseException
SourceMapParseException
public void parse(org.json.JSONObject sourceMapRoot, SourceMapSupplier sectionSupplier) throws SourceMapParseException
SourceMapParseException
public Mapping.OriginalMapping getMappingForLine(int lineNumber, int column)
SourceMapping
getMappingForLine
in interface SourceMapping
lineNumber
- The line number, with the first being '1'.column
- The column index, with the first being '1'.public Collection<String> getOriginalSources()
getOriginalSources
in interface SourceMappingReversable
public Collection<Mapping.OriginalMapping> getReverseMapping(String originalFile, int line, int column)
SourceMappingReversable
getReverseMapping
in interface SourceMappingReversable
originalFile
- the source fileline
- the source linecolumn
- the source column
public void visitMappings(SourceMapConsumerV3.EntryVisitor visitor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |