Class ExpressionCompletionRequest
java.lang.Object
org.eclipse.lemminx.customservice.synapse.expression.pojo.ExpressionCompletionRequest
- All Implemented Interfaces:
ICompletionRequest,IPositionRequest,ISharedSettingsRequest
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionCompletionRequest(DOMDocument xmlDocument, org.eclipse.lsp4j.Position position) ExpressionCompletionRequest(DOMDocument xmlDocument, org.eclipse.lsp4j.Position position, int offset) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSupportMarkupKind(String kind) Returnstrueif the client can support the given Markup kind for documentation andfalseotherwise.<T> TgetComponent(Class clazz) getFilterForStartTagName(String tagName) getInsertAttrValue(String value) org.eclipse.lsp4j.InsertTextFormatReturns the proper insert text format according the support of snippet.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 positionorg.eclipse.lsp4j.RangeReturns the replace range.org.eclipse.lsp4j.RangeReturns the range for replacing a tag name for an existing DOM element.Returns the sharedSettings instanceReturns the XML document.booleanReturns true if tag should be autoclosed with an end tag and false otherwise.booleanReturnstrueif the client support snippet andfalseotherwise.booleanReturns true if the editor supports delayed resolution of additionalTextEdits and false otherwise.booleanReturns true if the editor supports delayed resolution of documentation and false otherwise.
-
Constructor Details
-
ExpressionCompletionRequest
-
ExpressionCompletionRequest
public ExpressionCompletionRequest(DOMDocument xmlDocument, org.eclipse.lsp4j.Position position, int offset)
-
-
Method Details
-
getOffset
public int getOffset()Description copied from interface:IPositionRequestReturns the offset where completion was triggered.- Specified by:
getOffsetin interfaceIPositionRequest- Returns:
- the offset where completion was triggered
-
getPosition
public org.eclipse.lsp4j.Position getPosition()Description copied from interface:IPositionRequestReturns the position- Specified by:
getPositionin interfaceIPositionRequest- Returns:
- the position
-
getNode
Description copied from interface:IPositionRequestReturns the node where completion was triggered.- Specified by:
getNodein interfaceIPositionRequest- Returns:
- the offset where completion was triggered
-
getParentElement
Description copied from interface:IPositionRequestReturns the parent element of the node where completion was triggered and null otherwise.- Specified by:
getParentElementin interfaceIPositionRequest- Returns:
- the parent element of the node where completion was triggered and null otherwise.
-
getXMLDocument
Description copied from interface:IPositionRequestReturns the XML document.- Specified by:
getXMLDocumentin interfaceIPositionRequest- Returns:
- the XML document.
-
getCurrentTag
- Specified by:
getCurrentTagin interfaceIPositionRequest
-
getCurrentAttribute
- Specified by:
getCurrentAttributein interfaceIPositionRequest
-
getCurrentAttributeName
- Specified by:
getCurrentAttributeNamein interfaceIPositionRequest
-
getLineIndentInfo
Description copied from interface:IPositionRequestReturns the line indent information of the offset where completion was triggered.- Specified by:
getLineIndentInfoin interfaceIPositionRequest- Returns:
- Throws:
BadLocationException
-
getComponent
- Specified by:
getComponentin interfaceIPositionRequest
-
canSupportMarkupKind
Description copied from interface:ISharedSettingsRequestReturnstrueif the client can support the given Markup kind for documentation andfalseotherwise.- Specified by:
canSupportMarkupKindin interfaceISharedSettingsRequest- Parameters:
kind- the markup kind- Returns:
trueif the client can support the given Markup kind for documentation andfalseotherwise.
-
getReplaceRange
public org.eclipse.lsp4j.Range getReplaceRange()Description copied from interface:ICompletionRequestReturns the replace range.- Specified by:
getReplaceRangein interfaceICompletionRequest- Returns:
- the replace range.
-
getReplaceRangeForTagName
public org.eclipse.lsp4j.Range getReplaceRangeForTagName()Description copied from interface:ICompletionRequestReturns the range for replacing a tag name for an existing DOM element.- Specified by:
getReplaceRangeForTagNamein interfaceICompletionRequest- Returns:
- the range for replacing a tag name for an existing DOM element.
-
getXMLGenerator
- Specified by:
getXMLGeneratorin interfaceICompletionRequest- Throws:
BadLocationException
-
getFilterForStartTagName
- Specified by:
getFilterForStartTagNamein interfaceICompletionRequest
-
getInsertAttrValue
- Specified by:
getInsertAttrValuein interfaceICompletionRequest
-
isCompletionSnippetsSupported
public boolean isCompletionSnippetsSupported()Description copied from interface:ICompletionRequestReturnstrueif the client support snippet andfalseotherwise.- Specified by:
isCompletionSnippetsSupportedin interfaceICompletionRequest- Returns:
trueif the client support snippet andfalseotherwise.
-
isAutoCloseTags
public boolean isAutoCloseTags()Description copied from interface:ICompletionRequestReturns true if tag should be autoclosed with an end tag and false otherwise.- Specified by:
isAutoCloseTagsin interfaceICompletionRequest- Returns:
- true if tag should be autoclosed with an end tag and false otherwise.
-
isResolveDocumentationSupported
public boolean isResolveDocumentationSupported()Description copied from interface:ICompletionRequestReturns true if the editor supports delayed resolution of documentation and false otherwise.- Specified by:
isResolveDocumentationSupportedin interfaceICompletionRequest
-
isResolveAdditionalTextEditsSupported
public boolean isResolveAdditionalTextEditsSupported()Description copied from interface:ICompletionRequestReturns true if the editor supports delayed resolution of additionalTextEdits and false otherwise.- Specified by:
isResolveAdditionalTextEditsSupportedin interfaceICompletionRequest
-
getInsertTextFormat
public org.eclipse.lsp4j.InsertTextFormat getInsertTextFormat()Description copied from interface:ICompletionRequestReturns the proper insert text format according the support of snippet.- Specified by:
getInsertTextFormatin interfaceICompletionRequest- Returns:
- the proper insert text format according the support of snippet.
-