|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceExcerptProvider
A source excerpt provider is responsible for building source code excerpt of specific locations, such as a specific line or a region around a given line number.
Nested Class Summary | |
---|---|
static interface |
SourceExcerptProvider.ExcerptFormatter
A excerpt formatter is responsible of formatting source excerpts. |
static class |
SourceExcerptProvider.SourceExcerpt
Source excerpt variety. |
Method Summary | |
---|---|
String |
getSourceLine(String sourceName,
int lineNumber)
Get the line indicated by the line number. |
Region |
getSourceRegion(String sourceName,
int lineNumber)
Get a region around the indicated line number. |
Method Detail |
---|
String getSourceLine(String sourceName, int lineNumber)
lineNumber
- the line number, 1 being the first line of the file
null
if it does not existRegion getSourceRegion(String sourceName, int lineNumber)
lineNumber
- the line number, 1 being the first line of the file
null
if it does not exist
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |