public abstract class SourcePosition extends java.lang.Object implements Navigatable
Constructor and Description |
---|
SourcePosition() |
Modifier and Type | Method and Description |
---|---|
static SourcePosition |
createFromElement(PsiElement element) |
static SourcePosition |
createFromLine(PsiFile file,
int line) |
static SourcePosition |
createFromLineComputable(PsiFile file,
Computable<java.lang.Integer> line) |
static SourcePosition |
createFromOffset(PsiFile file,
int offset) |
boolean |
equals(java.lang.Object o) |
abstract PsiElement |
getElementAt() |
abstract PsiFile |
getFile() |
abstract int |
getLine() |
abstract int |
getOffset() |
abstract Editor |
openEditor(boolean requestFocus) |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canNavigate, canNavigateToSource, navigate
public abstract PsiFile getFile()
public abstract PsiElement getElementAt()
public abstract int getLine()
public abstract int getOffset()
public abstract Editor openEditor(boolean requestFocus)
public static SourcePosition createFromLineComputable(PsiFile file, Computable<java.lang.Integer> line)
public static SourcePosition createFromLine(PsiFile file, int line)
public static SourcePosition createFromOffset(PsiFile file, int offset)
public static SourcePosition createFromElement(PsiElement element)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object