Package org.jsoup.select

Class Evaluator.MatchesWholeOwnText

java.lang.Object
org.jsoup.select.Evaluator
org.jsoup.select.Evaluator.MatchesWholeOwnText
Enclosing class:
Evaluator

public static final class Evaluator.MatchesWholeOwnText extends Evaluator
Evaluator for matching Element's own whole text with regex.
Since:
1.15.1.
  • Constructor Details

    • MatchesWholeOwnText

      public MatchesWholeOwnText(Pattern pattern)
  • Method Details

    • matches

      public boolean matches(Element root, Element element)
      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
      element - tested element
      Returns:
      Returns true if the requirements are met or false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object