Class DocumentHighlight
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.DocumentHighlight
A document highlight is a range inside a text document which deserves special attention. Usually
a document highlight is visualized by changing the background color of its range.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentHighlightcreate(Range range, DocumentHighlightKind kind) Create a DocumentHighlight object.booleangetKind()The highlight kind, default is [text](#DocumentHighlightKind.Text).getRange()The range this highlight applies to.inthashCode()setKind(DocumentHighlightKind kind)
-
Method Details
-
getRange
The range this highlight applies to. -
setRange
-
getKind
The highlight kind, default is [text](#DocumentHighlightKind.Text). -
setKind
-
equals
-
hashCode
public int hashCode() -
create
Create a DocumentHighlight object.- Parameters:
range- The range the highlight applies to.
-