public abstract class Command extends Operation
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
ExecutionReturn |
execute(MainControl mainControl,
ExecutionReturn[] args,
genscript.execution.ExecuterTreeElem<?,?> treeElem,
java.lang.String inputKey)
Execution of the command.
|
java.lang.String |
getOperationTypeAsString()
Returns the operation type as a string.
|
getDescriptionFilename, getKeyAndAliases, getMainKey, getParameters, getSignature, initialize, setDescFilename, toString
public final ExecutionReturn execute(MainControl mainControl, ExecutionReturn[] args, genscript.execution.ExecuterTreeElem<?,?> treeElem, java.lang.String inputKey)
mainControl
- access to the main control of the program.args
- evaluated arguments of the call.treeElem
- the element of the parse tree at which this command was called.inputKey
- the original string with which this command was called in the script or by the user.public java.lang.String getOperationTypeAsString()
Operation
getOperationTypeAsString
in class Operation