Class ExecuteCommand
java.lang.Object
org.concordion.api.AbstractCommand
org.concordion.internal.command.executeCommand.ExecuteCommand
- All Implemented Interfaces:
Command
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExecuteListener
(ExecuteListener listener) void
execute
(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) void
modifyCommandCallTree
(CommandCall commandCall, List<ExampleCommandCall> examples, List<CommandCall> beforeExamples) Used to modify the command call tree post parsing and before execution.void
removeExecuteListener
(ExecuteListener listener) Methods inherited from class org.concordion.api.AbstractCommand
setUp, verify
-
Constructor Details
-
ExecuteCommand
public ExecuteCommand()
-
-
Method Details
-
modifyCommandCallTree
public void modifyCommandCallTree(CommandCall commandCall, List<ExampleCommandCall> examples, List<CommandCall> beforeExamples) Description copied from interface:Command
Used to modify the command call tree post parsing and before execution. Some things that might be done are: * Remove the example command from the parent object and put it in the examples list (or before examples) * Add new commands to examples or before examples * Modify the tree to put table or list execute commands on the right children elements.- Specified by:
modifyCommandCallTree
in interfaceCommand
- Overrides:
modifyCommandCallTree
in classAbstractCommand
- Parameters:
commandCall
- the command call element to modifyexamples
- a list of examplesbeforeExamples
- a list of "before" examples
-
addExecuteListener
-
removeExecuteListener
-
execute
public void execute(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) - Specified by:
execute
in interfaceCommand
- Overrides:
execute
in classAbstractCommand
-