java.lang.Object
com.maddyhome.idea.vim.ex.range.AbstractRange
com.maddyhome.idea.vim.ex.range.MarkRange
- All Implemented Interfaces:
- com.maddyhome.idea.vim.ex.Range
- public class MarkRange
- extends AbstractRange
Represents the line specified by a mark
|
Field Summary |
private char |
mark
|
|
Constructor Summary |
MarkRange(char mark,
int offset,
boolean move)
Create the mark range |
|
Method Summary |
int |
getRangeLine(Editor editor,
DataContext context,
boolean lastZero)
Gets the line number specified by this range without regard to any offset. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
mark
private char mark
MarkRange
public MarkRange(char mark,
int offset,
boolean move)
- Create the mark range
getRangeLine
public int getRangeLine(Editor editor,
DataContext context,
boolean lastZero)
- Gets the line number specified by this range without regard to any offset.
- Specified by:
getRangeLine in class AbstractRange
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
- Overrides:
toString in class AbstractRange