public class VariableResolverProcessor extends ConflictFilterProcessor implements ElementClassHint
ElementClassHint.DeclarationKind
PsiScopeProcessor.Event
myName, myPlace, myPlaceFile
myResults
KEY
Constructor and Description |
---|
VariableResolverProcessor(PsiJavaCodeReferenceElement place,
PsiFile placeFile) |
Modifier and Type | Method and Description |
---|---|
void |
add(PsiElement element,
PsiSubstitutor substitutor) |
boolean |
execute(PsiElement element,
ResolveState state) |
<T> T |
getHint(Key<T> hintKey) |
void |
handleEvent(PsiScopeProcessor.Event event,
java.lang.Object associated) |
boolean |
shouldProcess(ElementClassHint.DeclarationKind kind) |
protected boolean |
stopAtFoundResult(JavaResolveResult cachedResult) |
add, getName, getResult, setName
getResults
public VariableResolverProcessor(PsiJavaCodeReferenceElement place, PsiFile placeFile)
protected boolean stopAtFoundResult(JavaResolveResult cachedResult)
stopAtFoundResult
in class ConflictFilterProcessor
public final void handleEvent(PsiScopeProcessor.Event event, java.lang.Object associated)
handleEvent
in interface PsiScopeProcessor
handleEvent
in class ConflictFilterProcessor
public void add(PsiElement element, PsiSubstitutor substitutor)
add
in class ConflictFilterProcessor
public boolean shouldProcess(ElementClassHint.DeclarationKind kind)
shouldProcess
in interface ElementClassHint
public boolean execute(PsiElement element, ResolveState state)
execute
in interface PsiScopeProcessor
execute
in class ConflictFilterProcessor
element
- candidate element.state
- current state of resolver.public <T> T getHint(Key<T> hintKey)
getHint
in interface PsiScopeProcessor
getHint
in class ConflictFilterProcessor