Interface ICompletionResponse
- All Known Implementing Classes:
ExpressionCompletionResponse
public interface ICompletionResponse
Completion response API.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCompletionAttribute(org.eclipse.lsp4j.CompletionItem item) Add completion attribute.voidaddCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem) Add completion item.voidaddCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem, boolean comingFromGrammar) Add completion item and mark as coming from grammar.booleanhasAttribute(String attribute) booleanReturnstrueif there are completion items coming from grammar and false otherwise.
-
Method Details
-
addCompletionItem
void addCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem, boolean comingFromGrammar) Add completion item and mark as coming from grammar.- Parameters:
completionItem-comingFromGrammar-
-
addCompletionItem
void addCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem) Add completion item.- Parameters:
completionItem-
-
hasAttribute
-
addCompletionAttribute
void addCompletionAttribute(org.eclipse.lsp4j.CompletionItem item) Add completion attribute.- Parameters:
item-
-
hasSomeItemFromGrammar
boolean hasSomeItemFromGrammar()Returnstrueif there are completion items coming from grammar and false otherwise.- Returns:
trueif there are completion items coming from grammar and false otherwise.
-