com.google.debugging.sourcemap
Class SourceMapConsumerV3

java.lang.Object
  extended by com.google.debugging.sourcemap.SourceMapConsumerV3
All Implemented Interfaces:
SourceMapConsumer, SourceMapping

public class SourceMapConsumerV3
extends Object
implements SourceMapConsumer

Class for parsing version 3 of the SourceMap format, as produced by the Closure Compiler, etc. http://goto.google.com/sourcemapv3


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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceMapConsumerV3

public SourceMapConsumerV3()
Method Detail

parse

public void parse(String contents)
           throws SourceMapParseException
Parses the given contents containing a source map.

Specified by:
parse in interface SourceMapConsumer
Throws:
SourceMapParseException

parse

public void parse(org.json.JSONObject sourceMapRoot)
           throws SourceMapParseException
Parses the given contents containing a source map.

Throws:
SourceMapParseException

getMappingForLine

public Mapping.OriginalMapping getMappingForLine(int lineNumber,
                                                 int column)
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 interface SourceMapping
Parameters:
lineNumber - The line number, with the first being '1'.
column - The column index, with the first being '1'.