Class SourceMap
- java.lang.Object
-
- com.intergral.deep.agent.tracepoint.inst.jsp.sourcemap.SourceMap
-
public class SourceMap extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStratumSection(StratumSection section)
List<String>
getFilenames()
SourceMapLookup
lookup(int lineNumber)
Look a linenumber from a output file to a filename and linenumber.List<SourceMapLineStartEnd>
map(String filename, long lineNumber)
Maps the filename and line number to line numbers in the output file.
-
-
-
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)
-
-