Class WalkGherkinDocument<Acc extends Accumulator>

    • Constructor Detail

      • WalkGherkinDocument

        public WalkGherkinDocument()
    • 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 walk
        initialValue - the initial value of the traversal
        h - handlers for each node type, which may return a new value
        Returns:
        result the final value