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
public static interface Node.Container<T extends Node> extends 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Collection<T>elements()default Optional<List<Node>>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, map
-
-
-
-
Method Detail
-
findPathTo
default Optional<List<Node>> findPathTo(Predicate<Node> predicate)
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()
-
-