Class SourceMap


  • public class SourceMap
    extends Object
    • Constructor Detail

      • SourceMap

        public SourceMap​(String defaultStratum)
    • Method Detail

      • addStratumSection

        public void addStratumSection​(StratumSection section)
      • map

        public List<SourceMapLineStartEnd> map​(String filename,
                                               long lineNumber)
        Maps the filename and line number to line numbers in the output file.
        Parameters:
        filename - the stratum filename (i.e fib.jsp)
        lineNumber - the line number
        Returns:
        the list of line numbers in the output file (i.e. fib_jsp.java file)
      • lookup

        public SourceMapLookup lookup​(int lineNumber)
        Look a linenumber from a output file to a filename and linenumber.
        Parameters:
        lineNumber - the linenumber to look for (i.e. include_005ftime_jsp.java:91)
        Returns:
        the filename and linenumber it maps to (i.e. time.jsp:1)
      • getFilenames

        public List<String> getFilenames()