Class ScenarioStepComposite
java.lang.Object
pl.put.poznan.qualitychecker.logic.ScenarioStepComposite
- All Implemented Interfaces:
ScenarioStepComponent
Step within a scenario that has substeps.
-
Constructor Summary
ConstructorsConstructorDescriptionScenarioStepComposite
(ScenarioStepCompositeType type, String text) Creates a new instance of classScenarioStepComposite
. -
Method Summary
Modifier and TypeMethodDescriptionAccepts aVisitor
.void
addSubstep
(ScenarioStepComponent substep) Adds a step to the list of substepsgetText()
getType()
-
Constructor Details
-
ScenarioStepComposite
Creates a new instance of classScenarioStepComposite
.- Parameters:
type
- Type of the composite step represented byScenarioStepCompositeType
.text
- Text within a step.
-
-
Method Details
-
addSubstep
Adds a step to the list of substeps- Parameters:
substep
- Step to be added as a substep.
-
getType
- Returns:
- Type of the composite step (IF, ELSE, FOR EACH).
-
getText
- Specified by:
getText
in interfaceScenarioStepComponent
- Returns:
- Text within a step.
-
accept
Description copied from interface:ScenarioStepComponent
Accepts aVisitor
.- Specified by:
accept
in interfaceScenarioStepComponent
- Parameters:
visitor
- Visitor to be accepted.- Returns:
- Object returned by the visitor.
-
getSubsteps
- Returns:
- List of substeps of the composite step.
-