public class Commands extends Object
CommandName
construction.Modifier and Type | Field and Description |
---|---|
static CommandName |
CMD_ROOT
Magic value signaling the top level.
|
static String |
ROOT
Magic value signaling the top level.
|
Modifier and Type | Method and 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> |
key(CommandName name) |
static com.google.inject.Key<org.apache.sshd.server.Command> |
key(CommandName parent,
String name) |
static com.google.inject.Key<org.apache.sshd.server.Command> |
key(CommandName parent,
String name,
String descr) |
static com.google.inject.Key<org.apache.sshd.server.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.
|
public static final String ROOT
public static final CommandName CMD_ROOT
public static com.google.inject.Key<org.apache.sshd.server.Command> key(String name)
public static com.google.inject.Key<org.apache.sshd.server.Command> key(CommandName name)
public static com.google.inject.Key<org.apache.sshd.server.Command> key(CommandName parent, String name)
public static com.google.inject.Key<org.apache.sshd.server.Command> key(CommandName parent, String name, String descr)
public static CommandName named(String value)
public static CommandName named(CommandName parent, String name)
public static CommandName named(CommandName parent, String name, String descr)
public static String nameOf(CommandName name)
public static boolean isChild(CommandName parent, CommandName name)