Interface STBuilderFacets.WantsScannersOrValidators

All Superinterfaces:
STBuilderFacets.Done, STBuilderFacets.WantsDebuggingOptions, STBuilderFacets.WantsValidatorsOrDone
All Known Subinterfaces:
STBuilderFacets.All, STBuilderFacets.WantsPathsOrScannersOrValidators
All Known Implementing Classes:
STBuilder
Enclosing interface:
STBuilderFacets

public static interface STBuilderFacets.WantsScannersOrValidators extends STBuilderFacets.WantsValidatorsOrDone
  • Method Details

    • scanners

      Attach a set of scanners against Node sequences
      Parameters:
      scanners -
      Returns:
    • scanners

    • matchNodes

      STBuilderFacets.WantsValidatorsOrDone matchNodes(Object... predicates)

      Attach a Node scanner to this spec test builder by describing the sequence of nodes which are valid, with no extra node types allowed between the specified elements. This is a direct sequence matcher that is checked at each position in the parsed element stream. When a sequence is found, the search is resumed on the next element not included in the result.

      The predicates can be one of the types supported by STNodePredicate and STNodePredicates. These can be wrapped in structural predicate form by using the helpers from STPredicateVerbs, particularly with an import like

      import static io.nosqlbench.nb.spectest.traversal.STPredicateVerbs.*;

      Parameters:
      predicates - The pattern to match
      Returns:
      this SpecTestBuilder for builder method chaining