org.jsoup.select
Class Evaluator

java.lang.Object
  extended by org.jsoup.select.Evaluator
Direct Known Subclasses:
Evaluator.AllElements, Evaluator.Attribute, Evaluator.AttributeKeyPair, Evaluator.AttributeStarting, Evaluator.AttributeWithValueMatching, Evaluator.Class, Evaluator.ContainsOwnText, Evaluator.ContainsText, Evaluator.Id, Evaluator.IndexEvaluator, Evaluator.Matches, Evaluator.MatchesOwn, Evaluator.Tag

public abstract class Evaluator
extends Object

Evaluates that an element matches the selector.


Nested Class Summary
static class Evaluator.AllElements
          Evaluator for any / all element matching
static class Evaluator.Attribute
          Evaluator for attribute name matching
static class Evaluator.AttributeKeyPair
          Abstract evaluator for attribute name/value matching
static class Evaluator.AttributeStarting
          Evaluator for attribute name prefix matching
static class Evaluator.AttributeWithValue
          Evaluator for attribute name/value matching
static class Evaluator.AttributeWithValueContaining
          Evaluator for attribute name/value matching (value containing)
static class Evaluator.AttributeWithValueEnding
          Evaluator for attribute name/value matching (value ending)
static class Evaluator.AttributeWithValueMatching
          Evaluator for attribute name/value matching (value regex matching)
static class Evaluator.AttributeWithValueNot
          Evaluator for attribute name != value matching
static class Evaluator.AttributeWithValueStarting
          Evaluator for attribute name/value matching (value prefix)
static class Evaluator.Class
          Evaluator for element class
static class Evaluator.ContainsOwnText
          Evaluator for matching Element's own text
static class Evaluator.ContainsText
          Evaluator for matching Element (and its descendants) text
static class Evaluator.Id
          Evaluator for element id
static class Evaluator.IndexEquals
          Evaluator for matching by sibling index number (e = idx)
static class Evaluator.IndexEvaluator
          Abstract evaluator for sibling index matching
static class Evaluator.IndexGreaterThan
          Evaluator for matching by sibling index number (e > idx)
static class Evaluator.IndexLessThan
          Evaluator for matching by sibling index number (e < idx)
static class Evaluator.Matches
          Evaluator for matching Element (and its descendants) text with regex
static class Evaluator.MatchesOwn
          Evaluator for matching Element's own text with regex
static class Evaluator.Tag
          Evaluator for tag name
 
Constructor Summary
protected Evaluator()
           
 
Method Summary
abstract  boolean matches(Element root, Element element)
          Test if the element meets the evaluator's requirements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Evaluator

protected Evaluator()
Method Detail

matches

public abstract boolean matches(Element root,
                                Element element)
Test if the element meets the evaluator's requirements.

Parameters:
root - Root of the matching subtree
element - tested element


Copyright © 2009-2012 Jonathan Hedley. All Rights Reserved.