|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.lagarto.csselly.selector.PseudoFunction
public abstract class PseudoFunction
Pseudo functions.
| Nested Class Summary | |
|---|---|
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.LT
Select all elements at an index less than index within the matched set. |
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 Summary | |
|---|---|
PseudoFunction()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getPseudoFunctionName()
Returns pseudo-function name. |
boolean |
match(java.util.LinkedList<Node> currentResults,
Node node,
int index,
java.lang.String expression)
Returns true if node matches the pseudoclass within current results. |
abstract boolean |
match(Node node,
java.lang.String expression)
Matches node using provided expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PseudoFunction()
| Method Detail |
|---|
public abstract boolean match(Node node,
java.lang.String expression)
public boolean match(java.util.LinkedList<Node> currentResults,
Node node,
int index,
java.lang.String expression)
true if node matches the pseudoclass within current results.
public java.lang.String getPseudoFunctionName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||