Package org.eclipse.lsp4j
Class CodeLens
- java.lang.Object
-
- org.eclipse.lsp4j.CodeLens
-
public class CodeLens extends java.lang.ObjectA code lens represents a command that should be shown along with source text, like the number of references, a way to run tests, etc.A code lens is unresolved when no command is associated to it. For performance reasons the creation of a code lens and resolving should be done to two stages.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)CommandgetCommand()The command this code lens represents.java.lang.ObjectgetData()A data entry field that is preserved on a code lens item between a code lens and a code lens resolve request.RangegetRange()The range in which this code lens is valid.inthashCode()voidsetCommand(Command command)The command this code lens represents.voidsetData(java.lang.Object data)A data entry field that is preserved on a code lens item between a code lens and a code lens resolve request.voidsetRange(Range range)The range in which this code lens is valid.java.lang.StringtoString()
-
-
-
Method Detail
-
getRange
public Range getRange()
The range in which this code lens is valid. Should only span a single line.
-
setRange
public void setRange(Range range)
The range in which this code lens is valid. Should only span a single line.
-
getCommand
public Command getCommand()
The command this code lens represents.
-
setCommand
public void setCommand(Command command)
The command this code lens represents.
-
getData
public java.lang.Object getData()
A data entry field that is preserved on a code lens item between a code lens and a code lens resolve request.
-
setData
public void setData(java.lang.Object data)
A data entry field that is preserved on a code lens item between a code lens and a code lens resolve request.
-
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
-
-