Package io.cucumber.query
Interface LineageReducer<T>
- Type Parameters:
T- the type reduced to.
- All Known Implementing Classes:
NamingStrategy
public interface LineageReducer<T>
Visit the
Lineage of a GherkinDocument element
or Pickle and reduce it.
Because we are using messages we can not express the hierarchy of elements in
a GherkinDocument programmatically as a
tree of nodes. But we can still express the operations that would be typically
done this way as an operation on the lineage of those messages.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCollect theLineageof a GherkinDocument element orPickleand reduce it to a single result. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> LineageReducer<T>ascending(Supplier<? extends LineageReducer.Collector<T>> collector) static <T> LineageReducer<T>descending(Supplier<? extends LineageReducer.Collector<T>> collector)
-
Method Details
-
descending
-
ascending
-
reduce
-
reduce
-