public class CodeAction
extends java.lang.Object
Constructor and Description |
---|
CodeAction() |
CodeAction(java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Command |
getCommand()
A command this code action executes.
|
java.lang.Object |
getData()
A data entry field that is preserved on a code action between
a `textDocument/codeAction` and a `codeAction/resolve` request.
|
java.util.List<Diagnostic> |
getDiagnostics()
The diagnostics that this code action resolves.
|
CodeActionDisabled |
getDisabled()
Marks that the code action cannot currently be applied.
|
WorkspaceEdit |
getEdit()
The workspace edit this code action performs.
|
java.lang.Boolean |
getIsPreferred()
Marks this as a preferred action.
|
java.lang.String |
getKind()
The kind of the code action.
|
java.lang.String |
getTitle()
A short, human-readable, title for this code action.
|
int |
hashCode() |
void |
setCommand(Command command)
A command this code action executes.
|
void |
setData(java.lang.Object data)
A data entry field that is preserved on a code action between
a `textDocument/codeAction` and a `codeAction/resolve` request.
|
void |
setDiagnostics(java.util.List<Diagnostic> diagnostics)
The diagnostics that this code action resolves.
|
void |
setDisabled(CodeActionDisabled disabled)
Marks that the code action cannot currently be applied.
|
void |
setEdit(WorkspaceEdit edit)
The workspace edit this code action performs.
|
void |
setIsPreferred(java.lang.Boolean isPreferred)
Marks this as a preferred action.
|
void |
setKind(java.lang.String kind)
The kind of the code action.
|
void |
setTitle(java.lang.String title)
A short, human-readable, title for this code action.
|
java.lang.String |
toString() |
public CodeAction()
public CodeAction(java.lang.String title)
@Pure public java.lang.String getTitle()
public void setTitle(java.lang.String title)
@Pure public java.lang.String getKind()
public void setKind(java.lang.String kind)
@Pure public java.util.List<Diagnostic> getDiagnostics()
public void setDiagnostics(java.util.List<Diagnostic> diagnostics)
@Pure public java.lang.Boolean getIsPreferred()
public void setIsPreferred(java.lang.Boolean isPreferred)
@Pure public CodeActionDisabled getDisabled()
public void setDisabled(CodeActionDisabled disabled)
@Pure public WorkspaceEdit getEdit()
public void setEdit(WorkspaceEdit edit)
@Pure public Command getCommand()
public void setCommand(Command command)
@Pure public java.lang.Object getData()
public void setData(java.lang.Object data)
@Pure public java.lang.String toString()
toString
in class java.lang.Object
@Pure public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@Pure public int hashCode()
hashCode
in class java.lang.Object