Package org.jsoup.select
Class StructuralEvaluator.ImmediateParentRun
java.lang.Object
org.jsoup.select.Evaluator
org.jsoup.select.StructuralEvaluator
org.jsoup.select.StructuralEvaluator.ImmediateParentRun
- Enclosing class:
StructuralEvaluator
Holds a list of evaluators for one > two > three immediate parent matches, and the final direct evaluator under
test. To match, these are effectively ANDed together, starting from the last, matching up to the first.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jsoup.select.StructuralEvaluator
StructuralEvaluator.Ancestor, StructuralEvaluator.Has, StructuralEvaluator.ImmediateParentRun, StructuralEvaluator.ImmediatePreviousSibling, StructuralEvaluator.Is, StructuralEvaluator.Not, StructuralEvaluator.PreviousSibling, StructuralEvaluator.RootNested 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.ContainsWholeOwnText, Evaluator.ContainsWholeText, 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.MatchesWholeOwnText, Evaluator.MatchesWholeText, Evaluator.MatchText, Evaluator.Tag, Evaluator.TagEndsWith, Evaluator.TagStartsWith -
Field Summary
FieldsModifier and TypeFieldDescription(package private) intFields inherited from class org.jsoup.select.StructuralEvaluator
evaluator, threadMemo, wantsNodes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidprotected intcost()A relative evaluator cost function.(package private) booleanevaluateMatch(Element root, Node node) protected voidreset()Reset any internal state in this Evaluator before executing a new Collector evaluation.toString()Methods inherited from class org.jsoup.select.StructuralEvaluator
matches, matches, memoMatches, wantsNodesMethods inherited from class org.jsoup.select.Evaluator
asNodePredicate, asPredicate, matches
-
Field Details
-
evaluators
-
cost
int cost
-
-
Constructor Details
-
ImmediateParentRun
-
-
Method Details
-
add
-
evaluateMatch
- Specified by:
evaluateMatchin classStructuralEvaluator
-
cost
protected int cost()Description copied from class:EvaluatorA relative evaluator cost function. During evaluation, Evaluators are sorted by ascending cost as an optimization. -
reset
protected void reset()Description copied from class:EvaluatorReset any internal state in this Evaluator before executing a new Collector evaluation.- Overrides:
resetin classStructuralEvaluator
-
toString
-