Class ColorPresentationParams
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.WorkDoneProgressParams
org.graalvm.tools.lsp.server.types.ColorPresentationParams
Parameters for a [ColorPresentationRequest](#ColorPresentationRequest).
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorPresentationParamscreate(TextDocumentIdentifier textDocument, Color color, Range range) booleangetColor()The color to request presentations for.An optional token that a server can use to report partial results (e.g.getRange()The range where the color would be inserted.The text document.inthashCode()setPartialResultToken(Object partialResultToken) setTextDocument(TextDocumentIdentifier textDocument) Methods inherited from class org.graalvm.tools.lsp.server.types.WorkDoneProgressParams
create, getWorkDoneToken, setWorkDoneToken
-
Method Details
-
getTextDocument
The text document. -
setTextDocument
-
getColor
The color to request presentations for. -
setColor
-
getRange
The range where the color would be inserted. Serves as a context. -
setRange
-
getPartialResultToken
An optional token that a server can use to report partial results (e.g. streaming) to the client. -
setPartialResultToken
-
equals
- Overrides:
equalsin classWorkDoneProgressParams
-
hashCode
public int hashCode()- Overrides:
hashCodein classWorkDoneProgressParams
-
create
public static ColorPresentationParams create(TextDocumentIdentifier textDocument, Color color, Range range)
-