public class Range
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Range other)
As strictlyContains, but two exactly matching ranges are also considered contained one in each other.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isAfter(Position position) |
boolean |
isBefore(Position position) |
static Range |
range(int beginLine,
int beginColumn,
int endLine,
int endColumn) |
static Range |
range(Position begin,
Position end) |
boolean |
strictlyContains(Range other)
Do this strictly contains other? It means that this has to be larger than other and it has to start as other
or before and end as other or after.
|
java.lang.String |
toString() |
Range |
withBegin(Position begin) |
Range |
withBeginColumn(int column) |
Range |
withBeginLine(int line) |
Range |
withEnd(Position end) |
Range |
withEndColumn(int column) |
Range |
withEndLine(int line) |
public static Range range(int beginLine, int beginColumn, int endLine, int endColumn)
public Range withBeginColumn(int column)
public Range withBeginLine(int line)
public Range withEndColumn(int column)
public Range withEndLine(int line)
public boolean contains(Range other)
public boolean strictlyContains(Range other)
public boolean isBefore(Position position)
public boolean isAfter(Position position)
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