Package com.google.gerrit.sshd
Class Commands
- java.lang.Object
-
- com.google.gerrit.sshd.Commands
-
public class Commands extends Object
Utilities to supportCommandName
construction.
-
-
Field Summary
Fields Modifier and Type Field Description static CommandName
CMD_ROOT
Magic value signaling the top level.static String
ROOT
Magic value signaling the top level.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isChild(CommandName parent, CommandName name)
Is the second command a direct child of the first command?static com.google.inject.Key<org.apache.sshd.server.command.Command>
key(CommandName name)
static com.google.inject.Key<org.apache.sshd.server.command.Command>
key(CommandName parent, String name)
static com.google.inject.Key<org.apache.sshd.server.command.Command>
key(CommandName parent, String name, String descr)
static com.google.inject.Key<org.apache.sshd.server.command.Command>
key(String name)
static CommandName
named(CommandName parent, String name)
Create a CommandName annotation for the supplied name.static CommandName
named(CommandName parent, String name, String descr)
Create a CommandName annotation for the supplied name and description.static CommandName
named(String value)
Create a CommandName annotation for the supplied name.static String
nameOf(CommandName name)
Return the name of this command, possibly including any parents.
-
-
-
Field Detail
-
ROOT
public static final String ROOT
Magic value signaling the top level.- See Also:
- Constant Field Values
-
CMD_ROOT
public static final CommandName CMD_ROOT
Magic value signaling the top level.
-
-
Method Detail
-
key
public static com.google.inject.Key<org.apache.sshd.server.command.Command> key(String name)
-
key
public static com.google.inject.Key<org.apache.sshd.server.command.Command> key(CommandName name)
-
key
public static com.google.inject.Key<org.apache.sshd.server.command.Command> key(CommandName parent, String name)
-
key
public static com.google.inject.Key<org.apache.sshd.server.command.Command> key(CommandName parent, String name, String descr)
-
named
public static CommandName named(String value)
Create a CommandName annotation for the supplied name.
-
named
public static CommandName named(CommandName parent, String name)
Create a CommandName annotation for the supplied name.
-
named
public static CommandName named(CommandName parent, String name, String descr)
Create a CommandName annotation for the supplied name and description.
-
nameOf
public static String nameOf(CommandName name)
Return the name of this command, possibly including any parents.
-
isChild
public static boolean isChild(CommandName parent, CommandName name)
Is the second command a direct child of the first command?
-
-