Package io.cucumber.plugin.event
Interface Node.Container<T extends Node>
- All Superinterfaces:
Node
- All Known Subinterfaces:
Node.Examples,Node.Feature,Node.Rule,Node.ScenarioOutline
- Enclosing interface:
- Node
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.cucumber.plugin.event.Node
Node.Container<T extends Node>, Node.Example, Node.Examples, Node.Feature, Node.Rule, Node.Scenario, Node.ScenarioOutline -
Method Summary
Modifier and TypeMethodDescriptionelements()findPathTo(Predicate<Node> predicate) Finds a path down tree starting at this node to the first node that matches the predicate using depth first search.Methods inherited from interface io.cucumber.plugin.event.Node
getKeyword, getLocation, getName, getParent, getUri, map
-
Method Details
-
findPathTo
Description copied from interface:NodeFinds a path down tree starting at this node to the first node that matches the predicate using depth first search.- Specified by:
findPathToin interfaceNode- Parameters:
predicate- to match the target node.- Returns:
- a path to the first node or an empty optional if none was found.
-
elements
Collection<T> elements()
-