com.intellij.debugger
Class SourcePosition

java.lang.Object
  extended by com.intellij.debugger.SourcePosition
All Implemented Interfaces:
Navigatable

public abstract class SourcePosition
extends java.lang.Object
implements Navigatable

User: lex Date: Oct 24, 2003 Time: 8:23:06 PM


Constructor Summary
SourcePosition()
           
 
Method Summary
static SourcePosition createFromElement(PsiElement element)
           
static SourcePosition createFromLine(PsiFile file, int line)
           
static SourcePosition createFromOffset(PsiFile file, int offset)
           
 boolean equals(java.lang.Object o)
           
abstract  PsiFile getFile()
           
abstract  int getLine()
           
abstract  int getOffset()
           
abstract  Editor openEditor(boolean requestFocus)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.intellij.pom.Navigatable
canNavigate, canNavigateToSource, navigate
 

Constructor Detail

SourcePosition

public SourcePosition()
Method Detail

getFile

public abstract PsiFile getFile()

getLine

public abstract int getLine()
Returns:
a zero-based line number

getOffset

public abstract int getOffset()

openEditor

public abstract Editor openEditor(boolean requestFocus)

createFromLine

public static SourcePosition createFromLine(PsiFile file,
                                            int line)

createFromOffset

public static SourcePosition createFromOffset(PsiFile file,
                                              int offset)

createFromElement

public static SourcePosition createFromElement(PsiElement element)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object