public final class CaptureTraverser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static CaptureTraverser |
create(PsiClass targetClass,
PsiClass fromClass,
boolean checkInheritance)
Creates a traverser that is capable to find an instance of the targetClass having a reference to the fromClass instance
|
static CaptureTraverser |
direct() |
boolean |
isValid() |
CaptureTraverser |
oneLevelLess() |
com.sun.jdi.ObjectReference |
traverse(com.sun.jdi.ObjectReference objRef)
Looks for a captured outer this having inner this
|
public CaptureTraverser oneLevelLess()
public boolean isValid()
public com.sun.jdi.ObjectReference traverse(com.sun.jdi.ObjectReference objRef)
objRef
- an inner this objectpublic static CaptureTraverser direct()
public static CaptureTraverser create(PsiClass targetClass, PsiClass fromClass, boolean checkInheritance)
targetClass
- target (outer) classfromClass
- source (inner) classcheckInheritance
- if true, inheritors of target class are also acceptable