public interface SourceExcerptProvider
Modifier and Type | Interface and Description |
---|---|
static interface |
SourceExcerptProvider.ExcerptFormatter
A excerpt formatter is responsible of formatting source excerpts.
|
static class |
SourceExcerptProvider.SourceExcerpt
Source excerpt variety.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSourceLine(java.lang.String sourceName,
int lineNumber)
Get the line indicated by the line number.
|
com.google.debugging.sourcemap.proto.Mapping.OriginalMapping |
getSourceMapping(java.lang.String sourceName,
int lineNumber,
int columnNumber)
If the source file is associated with an inputSourceMap, does a lookup
for the original file position based on this source map.
|
Region |
getSourceRegion(java.lang.String sourceName,
int lineNumber)
Get a region around the indicated line number.
|
java.lang.String getSourceLine(java.lang.String sourceName, int lineNumber)
lineNumber
- the line number, 1 being the first line of the filenull
if it does not existRegion getSourceRegion(java.lang.String sourceName, int lineNumber)
lineNumber
- the line number, 1 being the first line of the filenull
if it does not existcom.google.debugging.sourcemap.proto.Mapping.OriginalMapping getSourceMapping(java.lang.String sourceName, int lineNumber, int columnNumber)
Copyright © 2009-2017 Google. All Rights Reserved.