|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceInfo
Tracks file and line information for AST nodes.
Method Summary | |
---|---|
int |
getColumn()
|
int |
getLength()
Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends. |
int |
getLine()
|
Source |
getSource()
The source code provider. |
int |
getStart()
Returns the character index into the original source file indicating where the source fragment corresponding to this node begins. |
Method Detail |
---|
Source getSource()
int getLine()
int getColumn()
int getStart()
The parser supplies useful well-defined source ranges to the nodes it creates.
-1
if no source startPosition information is recorded for this nodegetLength()
,
HasSourceInfo#setSourceLocation(Source, int, int, int, int)
int getLength()
The parser supplies useful well-defined source ranges to the nodes it creates.
0
if no source source position information is recorded for this nodegetStart()
,
HasSourceInfo#setSourceLocation(Source, int, int, int, int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |