org.jsoup.select
Class Evaluator.IndexLessThan

java.lang.Object
  extended by org.jsoup.select.Evaluator
      extended by org.jsoup.select.Evaluator.IndexEvaluator
          extended by org.jsoup.select.Evaluator.IndexLessThan
Enclosing class:
Evaluator

public static final class Evaluator.IndexLessThan
     
extends Evaluator.IndexEvaluator

Evaluator for matching by sibling index number (e < idx)


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jsoup.select.Evaluator
Evaluator.AllElements, Evaluator.Attribute, Evaluator.AttributeKeyPair, Evaluator.AttributeStarting, Evaluator.AttributeWithValue, Evaluator.AttributeWithValueContaining, Evaluator.AttributeWithValueEnding, Evaluator.AttributeWithValueMatching, Evaluator.AttributeWithValueNot, Evaluator.AttributeWithValueStarting, Evaluator.Class, Evaluator.ContainsOwnText, Evaluator.ContainsText, Evaluator.CssNthEvaluator, Evaluator.Id, Evaluator.IndexEquals, Evaluator.IndexEvaluator, Evaluator.IndexGreaterThan, Evaluator.IndexLessThan, Evaluator.IsEmpty, Evaluator.IsFirstChild, Evaluator.IsFirstOfType, Evaluator.IsLastChild, Evaluator.IsLastOfType, Evaluator.IsNthChild, Evaluator.IsNthLastChild, Evaluator.IsNthLastOfType, Evaluator.IsNthOfType, Evaluator.IsOnlyChild, Evaluator.IsOnlyOfType, Evaluator.IsRoot, Evaluator.Matches, Evaluator.MatchesOwn, Evaluator.Tag
 
Constructor Summary
Evaluator.IndexLessThan(int index)
           
 
Method Summary
 boolean matches(Element root, Element element)
          Test if the element meets the evaluator's requirements.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Evaluator.IndexLessThan

public Evaluator.IndexLessThan(int index)
Method Detail

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

toString

public String toString()
Overrides:
toString in class Object


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