Class STBreadthFirstPredicate

java.lang.Object
io.nosqlbench.nb.spectest.traversal.STBreadthFirstPredicate
All Implemented Interfaces:
Predicate<com.vladsch.flexmark.util.ast.Node>

public class STBreadthFirstPredicate extends Object implements Predicate<com.vladsch.flexmark.util.ast.Node>
Match if all the predicates match when tested pair-wise across the AST nodes, traversing strictly across by sibling nodes, and not following beyond the current parent.
  • Constructor Details

    • STBreadthFirstPredicate

      public STBreadthFirstPredicate(Object... specs)
  • Method Details

    • test

      public boolean test(com.vladsch.flexmark.util.ast.Node node)
      Specified by:
      test in interface Predicate<com.vladsch.flexmark.util.ast.Node>
    • toString

      public String toString()
      Overrides:
      toString in class Object