Class CombiningEvaluator.And

Enclosing class:
CombiningEvaluator

public static final class CombiningEvaluator.And extends CombiningEvaluator
  • Constructor Details

    • And

      public And(Collection<Evaluator> evaluators)
      Creates an evaluator that requires every supplied evaluator to match.
  • Method Details

    • matches

      public boolean matches(Element root, Element el)
      Description copied from class: Evaluator
      Tests whether the element matches this evaluator.
      Specified by:
      matches in class Evaluator
      Parameters:
      root - the query context, used by :scope; for a Document, :scope matches its document element
      el - the element to test
      Returns:
      whether the element matches
    • matches

      public boolean matches(Element root, LeafNode leaf)
    • toString

      public String toString()
      Overrides:
      toString in class Object