public class JavaCompletionProcessor extends java.lang.Object implements PsiScopeProcessor, ElementClassHint
Modifier and Type | Class and Description |
---|---|
static class |
JavaCompletionProcessor.Options |
PsiScopeProcessor.Event
ElementClassHint.DeclarationKind
KEY
Constructor and Description |
---|
JavaCompletionProcessor(PsiElement element,
ElementFilter filter,
JavaCompletionProcessor.Options options,
Condition<? super java.lang.String> nameCondition) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
execute(PsiElement element,
ResolveState state) |
<T> T |
getHint(Key<T> hintKey) |
PsiType |
getQualifierType() |
java.lang.Iterable<CompletionElement> |
getResults() |
void |
handleEvent(PsiScopeProcessor.Event event,
java.lang.Object associated) |
boolean |
isAccessible(PsiElement element) |
boolean |
satisfies(PsiElement element,
ResolveState state) |
void |
setCompletionElements(java.lang.Object [] elements) |
void |
setQualifierType(PsiType qualifierType) |
boolean |
shouldProcess(ElementClassHint.DeclarationKind kind) |
public JavaCompletionProcessor(PsiElement element, ElementFilter filter, JavaCompletionProcessor.Options options, Condition<? super java.lang.String> nameCondition)
public void handleEvent(PsiScopeProcessor.Event event, java.lang.Object associated)
handleEvent
in interface PsiScopeProcessor
public boolean execute(PsiElement element, ResolveState state)
execute
in interface PsiScopeProcessor
element
- candidate element.state
- current state of resolver.public boolean satisfies(PsiElement element, ResolveState state)
public void setQualifierType(PsiType qualifierType)
public PsiType getQualifierType()
public boolean isAccessible(PsiElement element)
public void setCompletionElements(java.lang.Object [] elements)
public java.lang.Iterable<CompletionElement> getResults()
public void clear()
public boolean shouldProcess(ElementClassHint.DeclarationKind kind)
shouldProcess
in interface ElementClassHint
public <T> T getHint(Key<T> hintKey)
getHint
in interface PsiScopeProcessor