public class MethodLocation extends Location<PsiMethod>
Constructor and Description |
---|
MethodLocation(Project project,
PsiMethod method,
Location<? extends PsiClass> classLocation) |
Modifier and Type | Method and Description |
---|---|
static MethodLocation |
elementInClass(PsiMethod psiElement,
PsiClass psiClass) |
<T extends PsiElement> |
getAncestors(java.lang.Class<T> ancestorClass,
boolean strict) |
PsiClass |
getContainingClass() |
Module |
getModule() |
Project |
getProject() |
PsiMethod |
getPsiElement() |
getOpenFileDescriptor, getParent, getParentElement, getVirtualFile, safeCast, safeGetPsiElement, toPsiLocation
public static MethodLocation elementInClass(PsiMethod psiElement, PsiClass psiClass)
public PsiMethod getPsiElement()
getPsiElement
in class Location<PsiMethod>
public Project getProject()
getProject
in class Location<PsiMethod>
public PsiClass getContainingClass()
public <T extends PsiElement> java.util.Iterator<Location<T>> getAncestors(java.lang.Class<T> ancestorClass, boolean strict)
getAncestors
in class Location<PsiMethod>