Package org.eclipse.lsp4j
Class CodeActionParams
- java.lang.Object
-
- org.eclipse.lsp4j.WorkDoneProgressAndPartialResultParams
-
- org.eclipse.lsp4j.CodeActionParams
-
- All Implemented Interfaces:
PartialResultParams,WorkDoneProgressParams
public class CodeActionParams extends WorkDoneProgressAndPartialResultParams
The code action request is sent from the client to the server to compute commands for a given text document and range. These commands are typically code fixes to either fix problems or to beautify/refactor code.
-
-
Constructor Summary
Constructors Constructor Description CodeActionParams()CodeActionParams(TextDocumentIdentifier textDocument, Range range, CodeActionContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)CodeActionContextgetContext()Context carrying additional information.RangegetRange()The range for which the command was invoked.TextDocumentIdentifiergetTextDocument()The document in which the command was invoked.inthashCode()voidsetContext(CodeActionContext context)Context carrying additional information.voidsetRange(Range range)The range for which the command was invoked.voidsetTextDocument(TextDocumentIdentifier textDocument)The document in which the command was invoked.java.lang.StringtoString()-
Methods inherited from class org.eclipse.lsp4j.WorkDoneProgressAndPartialResultParams
getPartialResultToken, getWorkDoneToken, setPartialResultToken, setPartialResultToken, setPartialResultToken, setWorkDoneToken, setWorkDoneToken, setWorkDoneToken
-
-
-
-
Constructor Detail
-
CodeActionParams
public CodeActionParams()
-
CodeActionParams
public CodeActionParams(TextDocumentIdentifier textDocument, Range range, CodeActionContext context)
-
-
Method Detail
-
getTextDocument
public TextDocumentIdentifier getTextDocument()
The document in which the command was invoked.
-
setTextDocument
public void setTextDocument(TextDocumentIdentifier textDocument)
The document in which the command was invoked.
-
getRange
public Range getRange()
The range for which the command was invoked.
-
setRange
public void setRange(Range range)
The range for which the command was invoked.
-
getContext
public CodeActionContext getContext()
Context carrying additional information.
-
setContext
public void setContext(CodeActionContext context)
Context carrying additional information.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classWorkDoneProgressAndPartialResultParams
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classWorkDoneProgressAndPartialResultParams
-
hashCode
public int hashCode()
- Overrides:
hashCodein classWorkDoneProgressAndPartialResultParams
-
-