Package com.google.debugging.sourcemap
Class SourceMapConsumerV1
- java.lang.Object
-
- com.google.debugging.sourcemap.SourceMapConsumerV1
-
- All Implemented Interfaces:
SourceMapConsumer,SourceMapping
public class SourceMapConsumerV1 extends java.lang.Object implements SourceMapConsumer
Class for parsing and representing a SourceMap, as produced by the Closure Compiler, Caja-Compiler, etc.
-
-
Constructor Summary
Constructors Constructor Description SourceMapConsumerV1()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mapping.OriginalMappinggetMappingForLine(int lineNumber, int columnIndex)Returns the original mapping for the line number and column position found in the source map.voidparse(java.lang.String contents)Parses the given contents containing a source map.
-
-
-
Method Detail
-
parse
public void parse(java.lang.String contents) throws SourceMapParseExceptionParses the given contents containing a source map.- Specified by:
parsein interfaceSourceMapConsumer- Throws:
SourceMapParseException
-
getMappingForLine
public Mapping.OriginalMapping getMappingForLine(int lineNumber, int columnIndex)
Description copied from interface:SourceMappingReturns the original mapping for the line number and column position found in the source map. Returns null if none is found.- Specified by:
getMappingForLinein interfaceSourceMapping- Parameters:
lineNumber- The line number, with the first being '1'.columnIndex- The column index, with the first being '1'.
-
-