public abstract static class Evaluator.CssNthEvaluator extends 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 and Description |
---|
Evaluator.CssNthEvaluator(int b) |
Evaluator.CssNthEvaluator(int a,
int b) |
Modifier and Type | Method and 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() |
public Evaluator.CssNthEvaluator(int a, int b)
public Evaluator.CssNthEvaluator(int b)
Copyright © 2009–2013 Jonathan Hedley. All rights reserved.