Package jodd.csselly.selector
Class PseudoClasses.FIRST
- java.lang.Object
-
- jodd.csselly.selector.PseudoClass
-
- jodd.csselly.selector.PseudoClasses.FIRST
-
- Enclosing interface:
- PseudoClasses
public static class PseudoClasses.FIRST extends PseudoClass
Selects the first matched element.
-
-
Constructor Summary
Constructors Constructor Description FIRST()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(Node node)Returnstrueif node matches the pseudo-class.booleanmatchInRange(java.util.List<Node> matchedResults, Node node, int index)Returnstrueif node matches the pseudo-class within current results.-
Methods inherited from class jodd.csselly.selector.PseudoClass
getPseudoClassName
-
-
-
-
Method Detail
-
match
public boolean match(Node node)
Description copied from class:PseudoClassReturnstrueif node matches the pseudo-class.- Specified by:
matchin classPseudoClass
-
matchInRange
public boolean matchInRange(java.util.List<Node> matchedResults, Node node, int index)
Description copied from class:PseudoClassReturnstrueif node matches the pseudo-class within current results. This match is all about the range and node position in it. By default, returnstrue.- Overrides:
matchInRangein classPseudoClass
-
-