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.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.Tag, Evaluator.TagEndsWith
Constructor and Description |
---|
CssNthEvaluator(int b) |
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 CssNthEvaluator(int a, int b)
public CssNthEvaluator(int b)
public boolean matches(Element root, Element element)
Evaluator
protected abstract String getPseudoClass()
protected abstract int calculatePosition(Element root, Element element)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses