Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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​(java.lang.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

      • SourceMapConsumerV1

        public SourceMapConsumerV1()
    • Method Detail

      • getMappingForLine

        public Mapping.OriginalMapping getMappingForLine​(int lineNumber,
                                                         int columnIndex)
        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'.
        columnIndex - The column index, with the first being '1'.