public static class StatisticsWeigher.LookupStatisticsWeigher extends Classifier<LookupElement>
myNext| Constructor and Description |
|---|
LookupStatisticsWeigher(CompletionLocation location,
Classifier<LookupElement> next) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(LookupElement element,
ProcessingContext context) |
java.lang.Iterable<LookupElement> |
classify(java.lang.Iterable<? extends LookupElement> source,
ProcessingContext context) |
java.util.List<Pair<LookupElement,java.lang.Object>> |
getSortingWeights(java.lang.Iterable<? extends LookupElement> items,
ProcessingContext context) |
void |
removeElement(LookupElement element,
ProcessingContext context) |
getNext, getPresentableNamepublic LookupStatisticsWeigher(CompletionLocation location, Classifier<LookupElement> next)
public void addElement(LookupElement element, ProcessingContext context)
addElement in class Classifier<LookupElement>public java.lang.Iterable<LookupElement> classify(java.lang.Iterable<? extends LookupElement> source, ProcessingContext context)
classify in class Classifier<LookupElement>public java.util.List<Pair<LookupElement,java.lang.Object>> getSortingWeights(java.lang.Iterable<? extends LookupElement> items, ProcessingContext context)
getSortingWeights in class Classifier<LookupElement>Classifier.classify(Iterable, ProcessingContext).
May return an empty list if there are no suitable objects available.
Used for diagnostics and statistic collection.public void removeElement(LookupElement element, ProcessingContext context)
removeElement in class Classifier<LookupElement>