public abstract class PseudoClass
extends java.lang.Object
| Constructor and Description |
|---|
PseudoClass() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPseudoClassName()
Returns pseudo-class name from simple class name.
|
abstract 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. |
public abstract boolean match(Node node)
true if node matches the pseudo-class.public boolean matchInRange(java.util.List<Node> matchedResults, Node node, int index)
true 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.public java.lang.String getPseudoClassName()