Package com.google.debugging.sourcemap
Class SourceMapConsumerV2
java.lang.Object
com.google.debugging.sourcemap.SourceMapConsumerV2
- All Implemented Interfaces:
SourceMapConsumer
,SourceMapping
Class for parsing version 2 of the SourceMap format, as produced by the
Closure Compiler, etc.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMappingForLine
(int lineNumber, int columnIndex) Returns the original mapping for the line number and column position found in the source map.void
Parses the given contents containing a source map.void
parse
(org.json.JSONObject sourceMapRoot) Parses the given contents containing a source map.
-
Constructor Details
-
SourceMapConsumerV2
public SourceMapConsumerV2()
-
-
Method Details
-
parse
Parses the given contents containing a source map.- Specified by:
parse
in interfaceSourceMapConsumer
- Throws:
SourceMapParseException
-
parse
Parses the given contents containing a source map.- Throws:
SourceMapParseException
-
getMappingForLine
Description copied from interface:SourceMapping
Returns the original mapping for the line number and column position found in the source map. Returns null if none is found.- Specified by:
getMappingForLine
in interfaceSourceMapping
- Parameters:
lineNumber
- The line number, with the first being '1'.columnIndex
- The column index, with the first being '1'.
-