Interface IPositionRequest
- All Known Subinterfaces:
ICompletionRequest,IDefinitionRequest,IHoverRequest,ILinkedEditingRangesRequest,IPrepareRenameRequest,IRenameRequest,ITypeDefinitionRequest
- All Known Implementing Classes:
ExpressionCompletionRequest
public interface IPositionRequest
-
Method Summary
Modifier and TypeMethodDescription<T> TgetComponent(Class clazz) Returns the line indent information of the offset where completion was triggered.getNode()Returns the node where completion was triggered.intReturns the offset where completion was triggered.Returns the parent element of the node where completion was triggered and null otherwise.org.eclipse.lsp4j.PositionReturns the positionReturns the XML document.
-
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
Returns the line indent information of the offset where completion was triggered.- Returns:
- Throws:
BadLocationException
-
getComponent
-