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.
| Modifier and Type | Field and Description |
|---|---|
| private Command | command
The command this code lens represents. |
| private Object | data
A data entry field that is preserved on a code lens item between a code lens and a code lens resolve request. |
| private Range | range
The range in which this code lens is valid. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Command | |
| public Object | getData()
A data entry field that is preserved on a code lens item between a code lens and a code lens resolve request. |
| public Range | |
| public int | |
| public void | |
| public void | |
| public void | |
| public String |
| command | back to summary |
|---|---|
| private Command command The command this code lens represents. | |
| data | back to summary |
|---|---|
| private Object data A data entry field that is preserved on a code lens item between a code lens and a code lens resolve request. | |
| range | back to summary |
|---|---|
| private Range range The range in which this code lens is valid. Should only span a single line. | |
| CodeLens | back to summary |
|---|---|
| public CodeLens() | |
| CodeLens | back to summary |
|---|---|
| public CodeLens(final Range range) | |
| CodeLens | back to summary |
|---|---|
| public CodeLens(final Range range, final Command command, final Object data) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getCommand | back to summary |
|---|---|
| public Command getCommand() The command this code lens represents. | |
| getData | back to summary |
|---|---|
| public Object getData() A data entry field that is preserved on a code lens item between a code lens and a code lens resolve request. | |
| getRange | back to summary |
|---|---|
| public Range getRange() The range in which this code lens is valid. Should only span a single line.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setCommand | back to summary |
|---|---|
| public void setCommand(final Command command) The command this code lens represents. | |
| setData | back to summary |
|---|---|
| public void setData(final Object data) A data entry field that is preserved on a code lens item between a code lens and a code lens resolve request. | |
| setRange | back to summary |
|---|---|
| public void setRange(final Range range) The range in which this code lens is valid. Should only span a single line. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |