Class Command
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.Command
Represents a reference to a command. Provides a title which will be used to represent a command
in the UI and, optionally, an array of arguments which will be passed to the command handler
function when invoked.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommandCreates a new Command literal.booleanArguments that the command handler should be invoked with.The identifier of the actual command handler.getTitle()Title of the command, like `save`.inthashCode()setArguments(List<Object> arguments) setCommand(String command)
-
Method Details
-
getTitle
Title of the command, like `save`. -
setTitle
-
getCommand
The identifier of the actual command handler. -
setCommand
-
getArguments
Arguments that the command handler should be invoked with. -
setArguments
-
equals
-
hashCode
public int hashCode() -
create
Creates a new Command literal.
-