Class ExampleCommand

java.lang.Object
org.concordion.api.AbstractCommand
org.concordion.internal.command.ExampleCommand
All Implemented Interfaces:
Command

public class ExampleCommand extends AbstractCommand
  • Constructor Details

    • ExampleCommand

      public ExampleCommand()
  • Method Details

    • getExamples

      public List<CommandCall> getExamples(CommandCall command)
    • addExampleListener

      public void addExampleListener(ExampleListener exampleListener)
    • removeExampleListener

      public void removeExampleListener(ExampleListener exampleListener)
    • execute

      public void execute(CommandCall node, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture)
      Specified by:
      execute in interface Command
      Overrides:
      execute in class AbstractCommand
    • 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 interface Command
      Overrides:
      modifyCommandCallTree in class AbstractCommand
      Parameters:
      element - the command call element to modify
      examples - a list of examples
      beforeExamples - a list of "before" examples
    • isBeforeExample

      protected boolean isBeforeExample(CommandCall element)
    • setupCommandForExample

      public static void setupCommandForExample(CommandCall node, ResultRecorder resultRecorder, String exampleName)
    • setSpecificationDescriber

      public void setSpecificationDescriber(SpecificationDescriber specificationDescriber)
    • setImplementationStatusModifier

      public void setImplementationStatusModifier(ImplementationStatusModifier implementationStatusModifier)