public final class PsiElementRef<T extends PsiElement>
extends java.lang.Object
Constructor and Description |
---|
PsiElementRef(com.intellij.psi.PsiElementRef.PsiRefColleague<T> colleague) |
Modifier and Type | Method and Description |
---|---|
T |
ensurePsiElementExists() |
boolean |
equals(java.lang.Object o) |
T |
getPsiElement() |
PsiManager |
getPsiManager() |
PsiElement |
getRoot() |
int |
hashCode() |
static <Child extends PsiElement,Parent extends PsiElement> |
imaginary(PsiElementRef<? extends Parent> parent,
PsiRefElementCreator<? super Parent,? extends Child> creator) |
boolean |
isImaginary() |
boolean |
isValid() |
static <T extends PsiElement> |
real(T element) |
public PsiElementRef(com.intellij.psi.PsiElementRef.PsiRefColleague<T> colleague)
public final boolean isImaginary()
public final T getPsiElement()
public final T ensurePsiElementExists()
public final PsiElement getRoot()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public final boolean isValid()
public static <T extends PsiElement> PsiElementRef<T> real(T element)
public static <Child extends PsiElement,Parent extends PsiElement> PsiElementRef<Child> imaginary(PsiElementRef<? extends Parent> parent, PsiRefElementCreator<? super Parent,? extends Child> creator)
public PsiManager getPsiManager()