Interface IPositionRequest

All Known Subinterfaces:
ICompletionRequest, IDefinitionRequest, IHoverRequest, ILinkedEditingRangesRequest, IPrepareRenameRequest, IRenameRequest, ITypeDefinitionRequest
All Known Implementing Classes:
ExpressionCompletionRequest

public interface IPositionRequest
  • Method Details

    • getOffset

      int getOffset()
      Returns the offset where completion was triggered.
      Returns:
      the offset where completion was triggered
    • getPosition

      org.eclipse.lsp4j.Position getPosition()
      Returns the position
      Returns:
      the position
    • getNode

      DOMNode getNode()
      Returns the node where completion was triggered.
      Returns:
      the offset where completion was triggered
    • getParentElement

      DOMElement getParentElement()
      Returns the parent element of the node where completion was triggered and null otherwise.
      Returns:
      the parent element of the node where completion was triggered and null otherwise.
    • getXMLDocument

      DOMDocument getXMLDocument()
      Returns the XML document.
      Returns:
      the XML document.
    • getCurrentTag

      String getCurrentTag()
    • getCurrentAttribute

      DOMAttr getCurrentAttribute()
    • getCurrentAttributeName

      String getCurrentAttributeName()
    • getLineIndentInfo

      LineIndentInfo getLineIndentInfo() throws BadLocationException
      Returns the line indent information of the offset where completion was triggered.
      Returns:
      Throws:
      BadLocationException
    • getComponent

      <T> T getComponent(Class clazz)