public class Range extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Position position)
As strictlyContains, but a position that matches the begin or the end of this range is also considered contained one in each other.
|
boolean |
contains(Range other)
As strictlyContains, but two exactly matching ranges are also considered contained one in each other.
|
boolean |
equals(Object o) |
int |
getLineCount() |
int |
hashCode() |
boolean |
isAfter(Position position) |
boolean |
isBefore(Position position) |
boolean |
overlapsWith(Range other)
Checks whether this Range overlaps with another Range.
|
static Range |
range(int beginLine,
int beginColumn,
int endLine,
int endColumn) |
static Range |
range(Position begin,
Position end) |
boolean |
strictlyContains(Position position)
Does this strictly contain position.
|
boolean |
strictlyContains(Range other)
Does this strictly contain other? It means that this has to be larger than other and it has to start before
other and end after other.
|
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 contains(Position position)
public boolean strictlyContains(Range other)
public boolean strictlyContains(Position position)
public boolean overlapsWith(Range other)
public boolean isBefore(Position position)
public boolean isAfter(Position position)
public int getLineCount()
Copyright © 2007–2019. All rights reserved.