Class Evaluator.AttributeKeyPair

java.lang.Object
org.jsoup.select.Evaluator
org.jsoup.select.Evaluator.AttributeKeyPair
Direct Known Subclasses:
Evaluator.AttributeWithValue, Evaluator.AttributeWithValueContaining, Evaluator.AttributeWithValueEnding, Evaluator.AttributeWithValueNot, Evaluator.AttributeWithValueStarting
Enclosing class:
Evaluator

public abstract static class Evaluator.AttributeKeyPair extends Evaluator
Abstract evaluator for attribute name/value matching
  • Constructor Details

  • Method Details

    • matches

      public boolean matches(Element root, Element element)
      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
      element - the element to test
      Returns:
      whether the element matches