public class Commands
extends java.lang.Object
CommandName
construction.Modifier and Type | Field and Description |
---|---|
static CommandName |
CMD_ROOT
Magic value signaling the top level.
|
static java.lang.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.Command> |
key(CommandName name) |
static com.google.inject.Key<org.apache.sshd.server.command.Command> |
key(CommandName parent,
java.lang.String name) |
static com.google.inject.Key<org.apache.sshd.server.command.Command> |
key(CommandName parent,
java.lang.String name,
java.lang.String descr) |
static com.google.inject.Key<org.apache.sshd.server.command.Command> |
key(java.lang.String name) |
static CommandName |
named(CommandName parent,
java.lang.String name)
Create a CommandName annotation for the supplied name.
|
static CommandName |
named(CommandName parent,
java.lang.String name,
java.lang.String descr)
Create a CommandName annotation for the supplied name and description.
|
static CommandName |
named(java.lang.String value)
Create a CommandName annotation for the supplied name.
|
static java.lang.String |
nameOf(CommandName name)
Return the name of this command, possibly including any parents.
|
public static final java.lang.String ROOT
public static final CommandName CMD_ROOT
public static com.google.inject.Key<org.apache.sshd.server.command.Command> key(java.lang.String name)
public static com.google.inject.Key<org.apache.sshd.server.command.Command> key(CommandName name)
public static com.google.inject.Key<org.apache.sshd.server.command.Command> key(CommandName parent, java.lang.String name)
public static com.google.inject.Key<org.apache.sshd.server.command.Command> key(CommandName parent, java.lang.String name, java.lang.String descr)
public static CommandName named(java.lang.String value)
public static CommandName named(CommandName parent, java.lang.String name)
public static CommandName named(CommandName parent, java.lang.String name, java.lang.String descr)
public static java.lang.String nameOf(CommandName name)
public static boolean isChild(CommandName parent, CommandName name)