Package org.jsoup.select

Class CombiningEvaluator.Or

java.lang.Object
org.jsoup.select.Evaluator
org.jsoup.select.CombiningEvaluator
org.jsoup.select.CombiningEvaluator.Or
Enclosing class:
CombiningEvaluator

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

    • Or

      public Or(Collection<Evaluator> evaluators)
      Create a new Or evaluator. The initial evaluators are ANDed together and used as the first clause of the OR.
      Parameters:
      evaluators - initial OR clause (these are wrapped into an AND evaluator).
  • Method Details

    • add

      public void add(Evaluator e)
    • matches

      public boolean matches(Element root, Element node)
      Description copied from class: Evaluator
      Test if the element meets the evaluator's requirements.
      Specified by:
      matches in class Evaluator
      Parameters:
      root - Root of the matching subtree
      node - tested element
      Returns:
      Returns true if the requirements are met or false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object