Class CompletionItem
java.lang.Object
com.oracle.truffle.tools.dap.types.JSONBase
com.oracle.truffle.tools.dap.types.CompletionItem
CompletionItems are the suggestions returned from the CompletionsRequest.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletionItembooleangetLabel()The label of this completion item.This value determines how many characters are overwritten by the completion text.Determines the length of the new selection after the text has been inserted (or replaced).Determines the start of the new selection after the text has been inserted (or replaced).A string that should be used when comparing this item with other items.getStart()This value determines the location (in the CompletionsRequest's 'text' attribute) where the completion text is added.getText()If text is not falsy then it is inserted instead of the label.getType()The item's type.inthashCode()setSelectionLength(Integer selectionLength) setSelectionStart(Integer selectionStart) setSortText(String sortText)
-
Method Details
-
getLabel
The label of this completion item. By default this is also the text that is inserted when selecting this completion. -
setLabel
-
getText
If text is not falsy then it is inserted instead of the label. -
setText
-
getSortText
A string that should be used when comparing this item with other items. When `falsy` the label is used. -
setSortText
-
getType
The item's type. Typically the client uses this information to render the item in the UI with an icon. -
setType
-
getStart
This value determines the location (in the CompletionsRequest's 'text' attribute) where the completion text is added. If missing the text is added at the location specified by the CompletionsRequest's 'column' attribute. -
setStart
-
getLength
This value determines how many characters are overwritten by the completion text. If missing the value 0 is assumed which results in the completion text being inserted. -
setLength
-
getSelectionStart
Determines the start of the new selection after the text has been inserted (or replaced). The start position must in the range 0 and length of the completion text. If omitted the selection starts at the end of the completion text. -
setSelectionStart
-
getSelectionLength
Determines the length of the new selection after the text has been inserted (or replaced). The selection can not extend beyond the bounds of the completion text. If omitted the length is assumed to be 0. -
setSelectionLength
-
equals
-
hashCode
public int hashCode() -
create
-