Package io.cucumber.gherkin.utils
Class WalkGherkinDocument<Acc extends Accumulator>
- java.lang.Object
-
- io.cucumber.gherkin.utils.WalkGherkinDocument<Acc>
-
public class WalkGherkinDocument<Acc extends Accumulator> extends Object
-
-
Constructor Summary
Constructors Constructor Description WalkGherkinDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccwalkGherkinDocument(io.cucumber.messages.types.GherkinDocument gherkinDocument, Acc initialValue, GherkinDocumentHandlers<Acc> h)Walks a Gherkin Document, visiting each node depth first (in the order they appear in the source)
-
-
-
Method Detail
-
walkGherkinDocument
public Acc walkGherkinDocument(io.cucumber.messages.types.GherkinDocument gherkinDocument, Acc initialValue, GherkinDocumentHandlers<Acc> h)
Walks a Gherkin Document, visiting each node depth first (in the order they appear in the source)- Parameters:
gherkinDocument- The gherkin document we want to walkinitialValue- the initial value of the traversalh- handlers for each node type, which may return a new value- Returns:
- result the final value
-
-