public class PsiLocation<E extends PsiElement> extends Location<E>
Constructor and Description |
---|
PsiLocation(E psiElement) |
PsiLocation(Project project,
E psiElement) |
PsiLocation(Project project,
Module module,
E psiElement) |
Modifier and Type | Method and Description |
---|---|
static <T extends PsiElement> |
fromPsiElement(Project project,
T element) |
static <T extends PsiElement> |
fromPsiElement(T element) |
static <T extends PsiElement> |
fromPsiElement(T element,
Module module) |
<T extends PsiElement> |
getAncestors(java.lang.Class<T> ancestorClass,
boolean strict) |
Module |
getModule() |
Project |
getProject() |
E |
getPsiElement() |
PsiLocation<E> |
toPsiLocation() |
getOpenFileDescriptor, getParent, getParentElement, getVirtualFile, safeCast, safeGetPsiElement
public PsiLocation(E psiElement)
public E getPsiElement()
getPsiElement
in class Location<E extends PsiElement>
public Project getProject()
getProject
in class Location<E extends PsiElement>
public Module getModule()
getModule
in class Location<E extends PsiElement>
public <T extends PsiElement> java.util.Iterator<Location<T>> getAncestors(java.lang.Class<T> ancestorClass, boolean strict)
getAncestors
in class Location<E extends PsiElement>
public PsiLocation<E> toPsiLocation()
toPsiLocation
in class Location<E extends PsiElement>
public static <T extends PsiElement> Location<T> fromPsiElement(Project project, T element)
public static <T extends PsiElement> Location<T> fromPsiElement(T element)
public static <T extends PsiElement> Location<T> fromPsiElement(T element, Module module)