Package org.eclipse.lsp4j
Class Command
- java.lang.Object
-
- org.eclipse.lsp4j.Command
-
public class Command extends java.lang.ObjectRepresents 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<java.lang.Object>getArguments()Arguments that the command handler should be invoked with.java.lang.StringgetCommand()The identifier of the actual command handler.java.lang.StringgetTitle()Title of the command, like `save`.inthashCode()voidsetArguments(java.util.List<java.lang.Object> arguments)Arguments that the command handler should be invoked with.voidsetCommand(java.lang.String command)The identifier of the actual command handler.voidsetTitle(java.lang.String title)Title of the command, like `save`.java.lang.StringtoString()
-
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
Title of the command, like `save`.
-
setTitle
public void setTitle(java.lang.String title)
Title of the command, like `save`.
-
getCommand
public java.lang.String getCommand()
The identifier of the actual command handler.
-
setCommand
public void setCommand(java.lang.String command)
The identifier of the actual command handler.
-
getArguments
public java.util.List<java.lang.Object> getArguments()
Arguments that the command handler should be invoked with.
-
setArguments
public void setArguments(java.util.List<java.lang.Object> arguments)
Arguments that the command handler should be invoked with.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-