Package org.concordion.internal.command
Class ExampleCommand
java.lang.Object
org.concordion.api.AbstractCommand
org.concordion.internal.command.ExampleCommand
- All Implemented Interfaces:
Command
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExampleListener
(ExampleListener exampleListener) void
execute
(CommandCall node, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) getExamples
(CommandCall command) protected boolean
isBeforeExample
(CommandCall element) void
modifyCommandCallTree
(CommandCall element, List<ExampleCommandCall> examples, List<CommandCall> beforeExamples) Used to modify the command call tree post parsing and before execution.void
removeExampleListener
(ExampleListener exampleListener) void
setImplementationStatusModifier
(ImplementationStatusModifier implementationStatusModifier) void
setSpecificationDescriber
(SpecificationDescriber specificationDescriber) static void
setupCommandForExample
(CommandCall node, ResultRecorder resultRecorder, String exampleName) Methods inherited from class org.concordion.api.AbstractCommand
setUp, verify
-
Constructor Details
-
ExampleCommand
public ExampleCommand()
-
-
Method Details
-
getExamples
-
addExampleListener
-
removeExampleListener
-
execute
public void execute(CommandCall node, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) - Specified by:
execute
in interfaceCommand
- Overrides:
execute
in classAbstractCommand
-
modifyCommandCallTree
public void modifyCommandCallTree(CommandCall element, 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:
element
- the command call element to modifyexamples
- a list of examplesbeforeExamples
- a list of "before" examples
-
isBeforeExample
-
setupCommandForExample
public static void setupCommandForExample(CommandCall node, ResultRecorder resultRecorder, String exampleName) -
setSpecificationDescriber
-
setImplementationStatusModifier
public void setImplementationStatusModifier(ImplementationStatusModifier implementationStatusModifier)
-