public static class PsiElementProcessor.CollectElementsWithLimit<T extends PsiElement> extends PsiElementProcessor.CollectElements<T>
PsiElementProcessor.CollectElements<T extends PsiElement>, PsiElementProcessor.CollectElementsWithLimit<T extends PsiElement>, PsiElementProcessor.CollectFilteredElements<T extends PsiElement>, PsiElementProcessor.FindElement<T extends PsiElement>, PsiElementProcessor.FindFilteredElement<T extends PsiElement>
Constructor and Description |
---|
CollectElementsWithLimit(int limit) |
CollectElementsWithLimit(int limit,
java.util.Collection<T> collection) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(T element)
Processes a PsiElement
|
boolean |
isOverflow() |
getCollection, toArray, toArray
public CollectElementsWithLimit(int limit)
public CollectElementsWithLimit(int limit, java.util.Collection<T> collection)
public boolean execute(T element)
PsiElementProcessor
execute
in interface PsiElementProcessor<T extends PsiElement>
execute
in class PsiElementProcessor.CollectElements<T extends PsiElement>
element
- currently processed element.public boolean isOverflow()