public abstract class Command extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
CONTEXT_NODE |
protected static String |
NULL_VALUE |
protected static String |
VAR_ARGS |
Modifier | Constructor and Description |
---|---|
protected |
Command() |
Modifier and Type | Method and Description |
---|---|
abstract void |
executeCommand(Object[] arguments,
XNode contextNode,
ExprContext context,
Script script,
Console console) |
protected void |
illegalArgument(String commandName,
String argName,
String reason) |
protected static Object[] |
parseArguments(Object[] args,
String[] argSpec,
String commandName,
XNode contextNode,
ExprContext context,
Script script) |
protected static final String VAR_ARGS
protected static final String NULL_VALUE
protected static final String CONTEXT_NODE
public abstract void executeCommand(Object[] arguments, XNode contextNode, ExprContext context, Script script, Console console) throws Exception
Exception
protected static Object[] parseArguments(Object[] args, String[] argSpec, String commandName, XNode contextNode, ExprContext context, Script script) throws IllegalArgumentException
IllegalArgumentException
protected void illegalArgument(String commandName, String argName, String reason) throws IllegalArgumentException
IllegalArgumentException