public static class PseudoClasses.FIRST extends PseudoClass
| Constructor and Description |
|---|
FIRST() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
match(Node node)
Returns
true if node matches the pseudo-class. |
boolean |
matchInRange(java.util.List<Node> matchedResults,
Node node,
int index)
Returns
true if node matches the pseudo-class within current results. |
getPseudoClassNamepublic boolean match(Node node)
PseudoClasstrue if node matches the pseudo-class.match in class PseudoClasspublic boolean matchInRange(java.util.List<Node> matchedResults, Node node, int index)
PseudoClasstrue if node matches the pseudo-class within current results.
This match is all about the range and node position in it.
By default, returns true.matchInRange in class PseudoClass