public class JvmPlainTextSymbolCompletionContributor extends java.lang.Object implements PlainTextSymbolCompletionContributor
PlainTextSymbolCompletionContributor
which is suitable for JVM languages.Constructor and Description |
---|
JvmPlainTextSymbolCompletionContributor() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<LookupElement> |
getLookupElements(PsiFile file,
int invocationCount,
java.lang.String prefix)
Adds lookup elements from given file.
|
public JvmPlainTextSymbolCompletionContributor()
public java.util.Collection<LookupElement> getLookupElements(PsiFile file, int invocationCount, java.lang.String prefix)
PlainTextSymbolCompletionContributor
getLookupElements
in interface PlainTextSymbolCompletionContributor
file
- file to add elements from.invocationCount
- number of times the completion was invoked (see CompletionParameters.getInvocationCount()
).prefix
- a prefix string. It's not required to return only matches starting with prefix, but this may be used to improve
performance.LookupElement
's to suggest.