Class CompletionResponse

java.lang.Object
org.eclipse.lsp4j.CompletionList
org.eclipse.lemminx.services.CompletionResponse
All Implemented Interfaces:
ICompletionResponse

public class CompletionResponse extends org.eclipse.lsp4j.CompletionList implements ICompletionResponse
Completion response implementation.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCompletionAttribute(org.eclipse.lsp4j.CompletionItem completionItem)
    Add completion attribute.
    void
    addCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem)
    Add completion item.
    void
    addCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem, boolean fromGrammar)
    Add completion item and mark as coming from grammar.
    boolean
    hasAttribute(String attribute)
     
    boolean
    Returns true if there are completion items coming from grammar and false otherwise.

    Methods inherited from class org.eclipse.lsp4j.CompletionList

    equals, getApplyKind, getItemDefaults, getItems, hashCode, isIncomplete, setApplyKind, setIsIncomplete, setItemDefaults, setItems, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CompletionResponse

      public CompletionResponse()
  • Method Details

    • addCompletionItem

      public void addCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem, boolean fromGrammar)
      Description copied from interface: ICompletionResponse
      Add completion item and mark as coming from grammar.
      Specified by:
      addCompletionItem in interface ICompletionResponse
      Parameters:
      completionItem -
      fromGrammar -
    • addCompletionItem

      public void addCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem)
      Description copied from interface: ICompletionResponse
      Add completion item.
      Specified by:
      addCompletionItem in interface ICompletionResponse
      Parameters:
      completionItem -
    • hasSomeItemFromGrammar

      public boolean hasSomeItemFromGrammar()
      Description copied from interface: ICompletionResponse
      Returns true if there are completion items coming from grammar and false otherwise.
      Specified by:
      hasSomeItemFromGrammar in interface ICompletionResponse
      Returns:
      true if there are completion items coming from grammar and false otherwise.
    • hasAttribute

      public boolean hasAttribute(String attribute)
      Specified by:
      hasAttribute in interface ICompletionResponse
    • addCompletionAttribute

      public void addCompletionAttribute(org.eclipse.lsp4j.CompletionItem completionItem)
      Description copied from interface: ICompletionResponse
      Add completion attribute.
      Specified by:
      addCompletionAttribute in interface ICompletionResponse
      Parameters:
      completionItem -