Class SourceLocation
java.lang.Object
org.jparsec.SourceLocation
Represents a location inside the source.
Not thread safe.
- Since:
- 3.1
-
Method Summary
-
Method Details
-
getIndex
public int getIndex()Returns the 0-based index within the source. -
getLine
public int getLine()Returns the line number of this location. Because this method takes amortizedlog(n)time, it's typically a good idea to avoid calling it until the entire source has been successfully parsed. -
getColumn
public int getColumn()Returns the column number of this location. Because this method takes amortizedlog(n)time, it's typically a good idea to avoid calling it until the entire source has been successfully parsed.
-