|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StaticSourceFile
The StaticSourceFile
contains information about a compiler input.
Method Summary | |
---|---|
int |
getColumnOfOffset(int offset)
Gets the 0-based column number of the given source offset. |
int |
getLineOffset(int lineNumber)
Returns the offset of the given line number relative to the file start. |
int |
getLineOfOffset(int offset)
Gets the 1-based line number of the given source offset. |
String |
getName()
The name of the file. |
boolean |
isExtern()
Returns whether this is an externs file. |
Method Detail |
---|
String getName()
boolean isExtern()
int getLineOffset(int lineNumber)
lineNumber
- the line of the input to get the absolute offset of.
IllegalArgumentException
- if lineno is less than 1 or greater than
the number of lines in the source.int getLineOfOffset(int offset)
offset
- An absolute file offset.
int getColumnOfOffset(int offset)
offset
- An absolute file offset.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |