Package org.eclipse.xtext.util
Class LineAndColumn
- java.lang.Object
-
- org.eclipse.xtext.util.LineAndColumn
-
public class LineAndColumn extends java.lang.ObjectA 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 booleanequals(java.lang.Object obj)static LineAndColumnfrom(int line, int column)intgetColumn()intgetLine()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
from
public static LineAndColumn from(int line, int column)
-
getLine
public int getLine()
-
getColumn
public int getColumn()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-