Package org.eclipse.lsp4j
Class DocumentHighlight
- java.lang.Object
-
- org.eclipse.lsp4j.DocumentHighlight
-
public class DocumentHighlight extends java.lang.ObjectA 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.
-
-
Constructor Summary
Constructors Constructor Description DocumentHighlight()DocumentHighlight(Range range)DocumentHighlight(Range range, DocumentHighlightKind kind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)DocumentHighlightKindgetKind()The highlight kind, default isDocumentHighlightKind.Text.RangegetRange()The range this highlight applies to.inthashCode()voidsetKind(DocumentHighlightKind kind)The highlight kind, default isDocumentHighlightKind.Text.voidsetRange(Range range)The range this highlight applies to.java.lang.StringtoString()
-
-
-
Constructor Detail
-
DocumentHighlight
public DocumentHighlight()
-
DocumentHighlight
public DocumentHighlight(Range range)
-
DocumentHighlight
public DocumentHighlight(Range range, DocumentHighlightKind kind)
-
-
Method Detail
-
getRange
public Range getRange()
The range this highlight applies to.
-
setRange
public void setRange(Range range)
The range this highlight applies to.
-
getKind
public DocumentHighlightKind getKind()
The highlight kind, default isDocumentHighlightKind.Text.
-
setKind
public void setKind(DocumentHighlightKind kind)
The highlight kind, default isDocumentHighlightKind.Text.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-