public class ParentStep extends Step
| Constructor and Description |
|---|
ParentStep() |
| Modifier and Type | Method and Description |
|---|---|
List<Step> |
getFlattenSteps()
Returns the list of the descendant steps, collected into a flat list.
|
List<Step> |
getFlattenSteps(boolean includeParentSteps)
Returns the list of the descendant steps, collected into a flat list.
|
List<ParentStep> |
getSteps()
Returns the child steps of the step.
|
boolean |
hasStep()
Are there any child steps in the step?
|
void |
setSteps(List<ParentStep> steps)
Sets the child steps of the step.
|
getKeyword, getKind, getParameters, getText, hasParameter, setKeyword, setKind, setParameters, setText, toStringpublic boolean hasStep()
true if step has child stepspublic List<ParentStep> getSteps()
public void setSteps(List<ParentStep> steps)
null, the result of the getSteps() method will be an empty list.steps - the child steps of the steppublic List<Step> getFlattenSteps()
public List<Step> getFlattenSteps(boolean includeParentSteps)
includeParentSteps parameter is true.
Otherwise, only its children will be included.
This method avoids infinite loops caused by recursive step references.includeParentSteps - should the parent steps be included in the result?Created by Kornél Simon, 2022