@API(value=Experimental) public class FilePosition extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
FilePosition(int line,
int column)
Create a new
FilePosition using the supplied line and
column . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getColumn()
Get the column (1-based) of this position.
|
int |
getLine()
Get the line (1-based) of this position.
|
int |
hashCode() |
java.lang.String |
toString() |
public FilePosition(int line, int column)
FilePosition
using the supplied line
and
column
.line
- the line (1-based)column
- the column (1-based)public int getLine()
public int getColumn()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object