Class CodeLens
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.CodeLens
A code lens represents a [command](#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
Modifier and TypeMethodDescriptionstatic CodeLensCreates a new CodeLens literal.booleanThe command this code lens represents.getData()An data entry field that is preserved on a code lens item between a [CodeLensRequest](#CodeLensRequest) and a [CodeLensResolveRequest] (#CodeLensResolveRequest).getRange()The range in which this code lens is valid.inthashCode()setCommand(Command command)
-
Method Details
-
getRange
The range in which this code lens is valid. Should only span a single line. -
setRange
-
getCommand
The command this code lens represents. -
setCommand
-
getData
An data entry field that is preserved on a code lens item between a [CodeLensRequest](#CodeLensRequest) and a [CodeLensResolveRequest] (#CodeLensResolveRequest). -
setData
-
equals
-
hashCode
public int hashCode() -
create
Creates a new CodeLens literal.
-