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

Quick Search    Search Deep

com.maddyhome.idea.vim.common
Class Mark  view Mark download Mark.java

java.lang.Object
  extended bycom.maddyhome.idea.vim.common.Mark

public class Mark
extends java.lang.Object

This represents a file mark. Each mark has a line and a column, the file it applies to, and the mark key


Nested Class Summary
static class Mark.KeySorter
           
 
Field Summary
private  int col
           
private  VirtualFile file
           
private  java.lang.String filename
           
private  char key
           
private  int line
           
 
Constructor Summary
Mark(char key, int lline, int col, VirtualFile file)
          Creates a file mark
 
Method Summary
 void clear()
          Clears the mark indicating that it is no longer a valid mark
 int getCol()
          The mark's column
 VirtualFile getFile()
          The virtual file associated with this mark
 java.lang.String getFilename()
          Gets the filename the mark is associate with
 char getKey()
          The mark's key
 int getLogicalLine()
          The mark's line
 int getOffset(Editor editor)
           
 boolean isClear()
          Checks to see if the mark has been invalidated
 void setLogicalLine(int lline)
          Updates the mark's lline
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

private char key

line

private int line

col

private int col

file

private VirtualFile file

filename

private java.lang.String filename
Constructor Detail

Mark

public Mark(char key,
            int lline,
            int col,
            VirtualFile file)
Creates a file mark

Method Detail

clear

public void clear()
Clears the mark indicating that it is no longer a valid mark


isClear

public boolean isClear()
Checks to see if the mark has been invalidated


getKey

public char getKey()
The mark's key


getLogicalLine

public int getLogicalLine()
The mark's line


getOffset

public int getOffset(Editor editor)

setLogicalLine

public void setLogicalLine(int lline)
Updates the mark's lline


getCol

public int getCol()
The mark's column


getFile

public VirtualFile getFile()
The virtual file associated with this mark


getFilename

public java.lang.String getFilename()
Gets the filename the mark is associate with


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()).