Package org.jsoup.select
Class Evaluator.CssNthEvaluator
java.lang.Object
org.jsoup.select.Evaluator
org.jsoup.select.Evaluator.CssNthEvaluator
- Direct Known Subclasses:
Evaluator.IsNthChild
,Evaluator.IsNthLastChild
,Evaluator.IsNthLastOfType
,Evaluator.IsNthOfType
- Enclosing class:
- Evaluator
public abstract static class Evaluator.CssNthEvaluator extends Evaluator
-
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.ContainsData, 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.MatchText, Evaluator.Tag, Evaluator.TagEndsWith
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CssNthEvaluator(int b)
CssNthEvaluator(int a, int b)
-
Method Summary
Modifier and Type Method Description protected abstract int
calculatePosition(Element root, Element element)
protected abstract String
getPseudoClass()
boolean
matches(Element root, Element element)
Test if the element meets the evaluator's requirements.String
toString()
-
Field Details
-
Constructor Details
-
CssNthEvaluator
public CssNthEvaluator(int a, int b) -
CssNthEvaluator
public CssNthEvaluator(int b)
-
-
Method Details
-
matches
Description copied from class:Evaluator
Test if the element meets the evaluator's requirements. -
toString
-
getPseudoClass
-
calculatePosition
-