public class CommandMetadata extends java.lang.Object implements java.lang.Comparable<CommandMetadata>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CommandMetadata other)
Compares plugins by their name.
|
char[] |
getCharacterFlags()
List the flags available for this plugin.
|
FlagMetadata |
getFlagMetadata(char flag)
Return the meta data of one of this command's flags.
|
char[] |
getFlagsOrDefaults(ShellCommand command)
Returns the flags specified in the
ShellCommand complemented with any flags that are on by default. |
InvocationMetadata |
getInvocationMetadata()
Get the meta data for invoking the command.
|
CommandNameMetadata |
getName()
Get the meta data of the name of the Command.
|
ThreadPolicy |
getThreadPolicy()
Return the ThreadPolicy for the ShellCommand.
|
boolean |
isPrimary(char flag)
Returns whether or not a flag is primary.
|
public CommandNameMetadata getName()
public char[] getFlagsOrDefaults(ShellCommand command)
ShellCommand
complemented with any flags that are on by default.public char[] getCharacterFlags()
public FlagMetadata getFlagMetadata(char flag)
flag
- Character identifying the flag.public int compareTo(CommandMetadata other)
compareTo
in interface java.lang.Comparable<CommandMetadata>
public InvocationMetadata getInvocationMetadata()
public ThreadPolicy getThreadPolicy()
public boolean isPrimary(char flag)