Package org.eclipse.xtext.util
Class LineAndColumn
- java.lang.Object
-
- org.eclipse.xtext.util.LineAndColumn
-
public class LineAndColumn extends java.lang.Object
A simple record with line and column information. The line number is one-based, e.g. the first line in the document has the line number 1. The column number is one based, too, e.g the first column in a line has the index 1. Line breaks are part of the line itself, e.g. the first line break in the document still has line number one.- Since:
- 2.9
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static LineAndColumn
from(int line, int column)
int
getColumn()
int
getLine()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
from
public static LineAndColumn from(int line, int column)
-
getLine
public int getLine()
-
getColumn
public int getColumn()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-