public class InstanceofLink<Parent extends PsiElement,Child extends PsiElement,CastTo extends Child> extends PsiChildLink<Parent,CastTo>
Modifier and Type | Method and Description |
---|---|
static <Parent extends PsiElement,Child extends PsiElement,CastTo extends Child> |
create(PsiChildLink<Parent,Child> delegate,
java.lang.Class<CastTo> castTo) |
CastTo |
createChild(Parent parent) |
CastTo |
findLinkedChild(Parent parent) |
createChildRef, createChildRef
public CastTo findLinkedChild(Parent parent)
findLinkedChild
in class PsiChildLink<Parent extends PsiElement,CastTo extends Child>
public CastTo createChild(Parent parent) throws IncorrectOperationException
IncorrectOperationException
public static <Parent extends PsiElement,Child extends PsiElement,CastTo extends Child> InstanceofLink<Parent,Child,CastTo> create(PsiChildLink<Parent,Child> delegate, java.lang.Class<CastTo> castTo)