public interface Position
Instances of this class model are used to model source code positions.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Position
An empty position instance; this can be used to model synthetic program elements which are not defined in any input file. -
Method Summary
-
Field Details
-
NO_POSITION
An empty position instance; this can be used to model synthetic program elements which are not defined in any input file.
-
-
Method Details
-
path
Path path()The input file to which this position refers to.- Returns:
- The input file to which this position refers to.
-
line
int line()The line number associated with this position.- Returns:
- The line number associated with this position.
-
col
int col()The column number associated with this position.- Returns:
- The column number associated with this position.
-