public abstract class PseudoFunction<E>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PseudoFunction.CONTAINS
Selects all elements that contain the specified text.
|
static class |
PseudoFunction.EQ
Select the element at index n within the matched set.
|
static class |
PseudoFunction.GT
Select all elements at an index greater than index within the matched set.
|
static class |
PseudoFunction.HAS
Selects elements which contain at least one element that matches the specified selector.
|
static class |
PseudoFunction.LT
Select all elements at an index less than index within the matched set.
|
static class |
PseudoFunction.NOT
Selects all elements that do not match the given selector.
|
static class |
PseudoFunction.NTH_CHILD
The
:nth-child(an+b) pseudo-class notation represents an element that has an+b-1
siblings before it in the document tree, for any positive integer or zero value of n,
and has a parent element. |
static class |
PseudoFunction.NTH_LAST_CHILD
The
:nth-last-child(an+b) pseudo-class notation represents an element that has
an+b-1 siblings after it in the document tree, for any positive integer or zero value
of n, and has a parent element. |
static class |
PseudoFunction.NTH_LAST_OF_TYPE
The
:nth-last-of-type(an+b) pseudo-class notation represents an element
that has an+b-1 siblings with the same expanded element name after it in the document tree,
for any zero or positive integer value of n, and has a parent element. |
static class |
PseudoFunction.NTH_OF_TYPE
The
:nth-of-type(an+b) pseudo-class notation represents an element that
has an+b-1 siblings with the same expanded element name before it in the document tree,
for any zero or positive integer value of n, and has a parent element. |
Constructor and Description |
---|
PseudoFunction() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPseudoFunctionName()
Returns pseudo-function name.
|
boolean |
match(java.util.List<Node> currentResults,
Node node,
int index,
E expression)
Returns
true if node matches the pseudoclass within current results. |
abstract boolean |
match(Node node,
E expression)
Matches node using provided parsed expression.
|
abstract E |
parseExpression(java.lang.String expression)
Parses expression before usage.
|
public abstract E parseExpression(java.lang.String expression)
public abstract boolean match(Node node, E expression)
public boolean match(java.util.List<Node> currentResults, Node node, int index, E expression)
true
if node matches the pseudoclass within current results.public java.lang.String getPseudoFunctionName()
Copyright © 2003-present Jodd Team