public class CompletionItem extends JSONBase
| Modifier and Type | Method and Description |
|---|---|
static CompletionItem |
create(String label) |
boolean |
equals(Object obj) |
String |
getLabel()
The label of this completion item.
|
Integer |
getLength()
This value determines how many characters are overwritten by the completion text.
|
Integer |
getSelectionLength()
Determines the length of the new selection after the text has been inserted (or replaced).
|
Integer |
getSelectionStart()
Determines the start of the new selection after the text has been inserted (or replaced).
|
String |
getSortText()
A string that should be used when comparing this item with other items.
|
Integer |
getStart()
This value determines the location (in the CompletionsRequest's 'text' attribute) where the
completion text is added.
|
String |
getText()
If text is not falsy then it is inserted instead of the label.
|
String |
getType()
The item's type.
|
int |
hashCode() |
CompletionItem |
setLabel(String label) |
CompletionItem |
setLength(Integer length) |
CompletionItem |
setSelectionLength(Integer selectionLength) |
CompletionItem |
setSelectionStart(Integer selectionStart) |
CompletionItem |
setSortText(String sortText) |
CompletionItem |
setStart(Integer start) |
CompletionItem |
setText(String text) |
CompletionItem |
setType(String type) |
public String getLabel()
public CompletionItem setLabel(String label)
public String getText()
public CompletionItem setText(String text)
public String getSortText()
public CompletionItem setSortText(String sortText)
public String getType()
public CompletionItem setType(String type)
public Integer getStart()
public CompletionItem setStart(Integer start)
public Integer getLength()
public CompletionItem setLength(Integer length)
public Integer getSelectionStart()
public CompletionItem setSelectionStart(Integer selectionStart)
public Integer getSelectionLength()
public CompletionItem setSelectionLength(Integer selectionLength)
public static CompletionItem create(String label)