Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.maddyhome.idea.vim.ex.range
Class MarkRange  view MarkRange download MarkRange.java

java.lang.Object
  extended bycom.maddyhome.idea.vim.ex.range.AbstractRange
      extended bycom.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
           
 
Fields inherited from class com.maddyhome.idea.vim.ex.range.AbstractRange
move, offset
 
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.
 
Methods inherited from class com.maddyhome.idea.vim.ex.range.AbstractRange
createRange, getLine, getOffset, isMove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mark

private char mark
Constructor Detail

MarkRange

public MarkRange(char mark,
                 int offset,
                 boolean move)
Create the mark range

Method Detail

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