| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public static Range | |
| public static Range | |
| public boolean | |
| public boolean | |
| public String | |
| public Range | |
| public Range | |
| public Range | |
| public Range | |
| public Range | |
| public Range |
| begin | back to summary |
|---|---|
| public final Position begin | |
| end | back to summary |
|---|---|
| public final Position end | |
| Range | back to summary |
|---|---|
| public Range(Position begin, Position end) | |
| contains | back to summary |
|---|---|
| public boolean contains(Range other) As strictlyContains, but two exactly matching ranges are also considered contained one in each other. | |
| contains | back to summary |
|---|---|
| public 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. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getLineCount | back to summary |
|---|---|
| public int getLineCount() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isAfter | back to summary |
|---|---|
| public boolean isAfter(Position position) | |
| isBefore | back to summary |
|---|---|
| public boolean isBefore(Position position) | |
| overlapsWith | back to summary |
|---|---|
| public boolean overlapsWith(Range other) Checks whether this Range overlaps with another Range. If two ranges overlap, this range or the other range strictlyContains the begin or the end of the other range. | |
| range | back to summary |
|---|---|
| public static Range range(Position begin, Position end) | |
| range | back to summary |
|---|---|
| public static Range range(int beginLine, int beginColumn, int endLine, int endColumn) | |
| strictlyContains | back to summary |
|---|---|
| public 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. | |
| strictlyContains | back to summary |
|---|---|
| public boolean strictlyContains(Position position) Does this strictly contain position. It means that the position is after the begin of this range and before the end of this range. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| withBegin | back to summary |
|---|---|
| public Range withBegin(Position begin) | |
| withBeginColumn | back to summary |
|---|---|
| public Range withBeginColumn(int column) | |
| withBeginLine | back to summary |
|---|---|
| public Range withBeginLine(int line) | |
| withEnd | back to summary |
|---|---|
| public Range withEnd(Position end) | |
| withEndColumn | back to summary |
|---|---|
| public Range withEndColumn(int column) | |
| withEndLine | back to summary |
|---|---|
| public Range withEndLine(int line) | |