public class VariablesProcessor extends java.lang.Object implements PsiScopeProcessor, ElementClassHint
PsiScopesUtil
PsiScopeProcessor.Event
ElementClassHint.DeclarationKind
KEY
Constructor and Description |
---|
VariablesProcessor(java.lang.String _prefix,
boolean staticSensitiveFlag)
Collecting _all_ variables in scope
|
VariablesProcessor(java.lang.String _prefix,
boolean staticSensitiveFlag,
java.util.List<? super PsiVariable> lst)
Collecting _all_ variables in scope
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute(PsiElement pe,
ResolveState state)
Always return true since we wanna get all vars in scope
|
<T> T |
getHint(Key<T> hintKey) |
PsiVariable[] |
getResultsAsArray()
sometimes it is important to get results as array
|
void |
handleEvent(PsiScopeProcessor.Event event,
java.lang.Object associated) |
boolean |
shouldProcess(ElementClassHint.DeclarationKind kind) |
public VariablesProcessor(java.lang.String _prefix, boolean staticSensitiveFlag)
public VariablesProcessor(java.lang.String _prefix, boolean staticSensitiveFlag, java.util.List<? super PsiVariable> lst)
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 PsiVariable[] getResultsAsArray()
public <T> T getHint(Key<T> hintKey)
getHint
in interface PsiScopeProcessor