Modifier and Type | Class and Description |
---|---|
static class |
Command.CmdParseException |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
args |
protected java.lang.String |
commandStr |
protected java.lang.String |
detail |
protected boolean |
needsREnvironments |
protected boolean |
validArgs |
Constructor and Description |
---|
Command(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
defineCmdNameAndDetails() |
protected abstract void |
evaluateArgs() |
protected void |
fail(java.lang.String failedMessage) |
static boolean |
isAModule(java.lang.String name) |
static boolean |
isHelpArg(java.lang.String arg) |
boolean |
isNeedsREnvironments() |
void |
printDetails() |
abstract void |
run() |
protected java.lang.String commandStr
protected java.lang.String detail
protected java.lang.String[] args
protected boolean needsREnvironments
protected boolean validArgs
protected abstract void defineCmdNameAndDetails()
protected abstract void evaluateArgs() throws Command.CmdParseException
Command.CmdParseException
public abstract void run()
public static boolean isAModule(java.lang.String name)
public static boolean isHelpArg(java.lang.String arg)
protected void fail(java.lang.String failedMessage) throws Command.CmdParseException
Command.CmdParseException
public void printDetails()
public boolean isNeedsREnvironments()