public class SourceMapConsumerV2 extends Object implements SourceMapConsumer
| Constructor and Description |
|---|
SourceMapConsumerV2() |
| Modifier and Type | Method and Description |
|---|---|
Mapping.OriginalMapping |
getMappingForLine(int lineNumber,
int columnIndex)
Returns the original mapping for the line number and column position found
in the source map.
|
void |
parse(org.json.JSONObject sourceMapRoot)
Parses the given contents containing a source map.
|
void |
parse(String contents)
Parses the given contents containing a source map.
|
public void parse(String contents) throws SourceMapParseException
parse in interface SourceMapConsumerSourceMapParseExceptionpublic void parse(org.json.JSONObject sourceMapRoot)
throws SourceMapParseException
SourceMapParseExceptionpublic Mapping.OriginalMapping getMappingForLine(int lineNumber, int columnIndex)
SourceMappinggetMappingForLine in interface SourceMappinglineNumber - The line number, with the first being '1'.columnIndex - The column index, with the first being '1'.