public abstract class VariablesProcessor extends java.lang.Object implements PsiScopeProcessor, ElementClassHint
PsiScopeProcessor.Event
ElementClassHint.DeclarationKind
KEY
Constructor and Description |
---|
VariablesProcessor(boolean staticSensitive)
Collecting _all_ variables in scope
|
VariablesProcessor(boolean staticSensitive,
java.util.List<PsiVariable> list)
Collecting _all_ variables in scope
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
check(PsiVariable var,
ResolveState state) |
boolean |
execute(PsiElement pe,
ResolveState state)
Always return true since we wanna get all vars in scope
|
<T> T |
getHint(Key<T> hintKey) |
PsiVariable |
getResult(int i) |
void |
handleEvent(PsiScopeProcessor.Event event,
java.lang.Object associated) |
boolean |
shouldProcess(ElementClassHint.DeclarationKind kind) |
int |
size() |
public VariablesProcessor(boolean staticSensitive)
public VariablesProcessor(boolean staticSensitive, java.util.List<PsiVariable> list)
protected abstract boolean check(PsiVariable var, ResolveState state)
public boolean shouldProcess(ElementClassHint.DeclarationKind kind)
shouldProcess
in interface ElementClassHint
public boolean execute(PsiElement pe, ResolveState state)
execute
in interface PsiScopeProcessor
pe
- candidate element.state
- current state of resolver.public final void handleEvent(PsiScopeProcessor.Event event, java.lang.Object associated)
handleEvent
in interface PsiScopeProcessor
public int size()
public PsiVariable getResult(int i)
public <T> T getHint(Key<T> hintKey)
getHint
in interface PsiScopeProcessor