public class InlayHintLabelPart
extends java.lang.Object
Since 3.17.0
Constructor and Description |
---|
InlayHintLabelPart() |
InlayHintLabelPart(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Command |
getCommand()
An optional command for this label part.
|
Location |
getLocation()
An optional source code location that represents this
label part.
|
org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent> |
getTooltip()
The tooltip text when you hover over this label part.
|
java.lang.String |
getValue()
The value of this label part.
|
int |
hashCode() |
void |
setCommand(Command command)
An optional command for this label part.
|
void |
setLocation(Location location)
An optional source code location that represents this
label part.
|
void |
setTooltip(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent> tooltip)
The tooltip text when you hover over this label part.
|
void |
setTooltip(MarkupContent tooltip) |
void |
setTooltip(java.lang.String tooltip) |
void |
setValue(java.lang.String value)
The value of this label part.
|
java.lang.String |
toString() |
public InlayHintLabelPart()
public InlayHintLabelPart(java.lang.String value)
@Pure public java.lang.String getValue()
public void setValue(java.lang.String value)
@Pure public org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent> getTooltip()
InlayHintCapabilities.resolveSupport
clients might resolve
this property late using the resolve request.public void setTooltip(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent> tooltip)
InlayHintCapabilities.resolveSupport
clients might resolve
this property late using the resolve request.public void setTooltip(java.lang.String tooltip)
public void setTooltip(MarkupContent tooltip)
@Pure public Location getLocation()
The editor will use this location for the hover and for code navigation features: This part will become a clickable link that resolves to the definition of the symbol at the given location (not necessarily the location itself), it shows the hover that shows at the given location, and it shows a context menu with further code navigation commands.
Depending on the client capability InlayHintCapabilities.resolveSupport
clients
might resolve this property late using the resolve request.
public void setLocation(Location location)
The editor will use this location for the hover and for code navigation features: This part will become a clickable link that resolves to the definition of the symbol at the given location (not necessarily the location itself), it shows the hover that shows at the given location, and it shows a context menu with further code navigation commands.
Depending on the client capability InlayHintCapabilities.resolveSupport
clients
might resolve this property late using the resolve request.
@Pure public Command getCommand()
Depending on the client capability InlayHintCapabilities.resolveSupport
clients
might resolve this property late using the resolve request.
public void setCommand(Command command)
Depending on the client capability InlayHintCapabilities.resolveSupport
clients
might resolve this property late using the resolve request.
@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