public abstract class Location<E extends PsiElement>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DataKey<Location<?>> |
DATA_KEY |
static DataKey<Location<?>[]> |
DATA_KEYS |
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
abstract <T extends PsiElement> |
getAncestors(java.lang.Class<T> ancestorClass,
boolean strict) |
abstract Module |
getModule() |
OpenFileDescriptor |
getOpenFileDescriptor() |
<Ancestor extends PsiElement> |
getParent(java.lang.Class<Ancestor> parentClass) |
<Ancestor extends PsiElement> |
getParentElement(java.lang.Class<Ancestor> parentClass) |
abstract Project |
getProject() |
abstract E |
getPsiElement() |
VirtualFile |
getVirtualFile() |
static <T> T |
safeCast(java.lang.Object obj,
java.lang.Class<T> expectedClass) |
static <T extends PsiElement> |
safeGetPsiElement(Location<T> location) |
PsiLocation<E> |
toPsiLocation() |
public abstract E getPsiElement()
public abstract Project getProject()
public abstract <T extends PsiElement> java.util.Iterator<Location<T>> getAncestors(java.lang.Class<T> ancestorClass, boolean strict)
public VirtualFile getVirtualFile()
public OpenFileDescriptor getOpenFileDescriptor()
public <Ancestor extends PsiElement> Location<Ancestor> getParent(java.lang.Class<Ancestor> parentClass)
public <Ancestor extends PsiElement> Ancestor getParentElement(java.lang.Class<Ancestor> parentClass)
public static <T extends PsiElement> T safeGetPsiElement(Location<T> location)
public static <T> T safeCast(java.lang.Object obj, java.lang.Class<T> expectedClass)
public PsiLocation<E> toPsiLocation()
public abstract Module getModule()