public class CompletionItem
extends java.lang.Object
Constructor and Description |
---|
CompletionItem() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLabel()
The label of this completion item.
|
java.lang.Integer |
getLength()
This value determines how many characters are overwritten by the completion text.
|
java.lang.Integer |
getSelectionLength()
Determines the length of the new selection after the text has been inserted (or replaced).
|
java.lang.Integer |
getSelectionStart()
Determines the start of the new selection after the text has been inserted (or replaced).
|
java.lang.String |
getSortText()
A string that should be used when comparing this item with other items.
|
java.lang.Integer |
getStart()
This value determines the location (in the CompletionsRequest's 'text' attribute) where the completion text is
added.
|
java.lang.String |
getText()
If text is not falsy then it is inserted instead of the label.
|
CompletionItemType |
getType()
The item's type.
|
int |
hashCode() |
void |
setLabel(java.lang.String label)
The label of this completion item.
|
void |
setLength(java.lang.Integer length)
This value determines how many characters are overwritten by the completion text.
|
void |
setSelectionLength(java.lang.Integer selectionLength)
Determines the length of the new selection after the text has been inserted (or replaced).
|
void |
setSelectionStart(java.lang.Integer selectionStart)
Determines the start of the new selection after the text has been inserted (or replaced).
|
void |
setSortText(java.lang.String sortText)
A string that should be used when comparing this item with other items.
|
void |
setStart(java.lang.Integer start)
This value determines the location (in the CompletionsRequest's 'text' attribute) where the completion text is
added.
|
void |
setText(java.lang.String text)
If text is not falsy then it is inserted instead of the label.
|
void |
setType(CompletionItemType type)
The item's type.
|
java.lang.String |
toString() |
@Pure public java.lang.String getLabel()
public void setLabel(java.lang.String label)
@Pure public java.lang.String getText()
This is an optional property.
public void setText(java.lang.String text)
This is an optional property.
@Pure public java.lang.String getSortText()
This is an optional property.
public void setSortText(java.lang.String sortText)
This is an optional property.
@Pure public CompletionItemType getType()
This is an optional property.
public void setType(CompletionItemType type)
This is an optional property.
@Pure public java.lang.Integer getStart()
If missing the text is added at the location specified by the CompletionsRequest's 'column' attribute.
This is an optional property.
public void setStart(java.lang.Integer start)
If missing the text is added at the location specified by the CompletionsRequest's 'column' attribute.
This is an optional property.
@Pure public java.lang.Integer getLength()
If missing the value 0 is assumed which results in the completion text being inserted.
This is an optional property.
public void setLength(java.lang.Integer length)
If missing the value 0 is assumed which results in the completion text being inserted.
This is an optional property.
@Pure public java.lang.Integer getSelectionStart()
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.
This is an optional property.
public void setSelectionStart(java.lang.Integer selectionStart)
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.
This is an optional property.
@Pure public java.lang.Integer getSelectionLength()
The selection can not extend beyond the bounds of the completion text.
If omitted the length is assumed to be 0.
This is an optional property.
public void setSelectionLength(java.lang.Integer selectionLength)
The selection can not extend beyond the bounds of the completion text.
If omitted the length is assumed to be 0.
This is an optional property.
@Pure public java.lang.String toString()
toString
in class java.lang.Object
@Pure public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@Pure public int hashCode()
hashCode
in class java.lang.Object