Package jodd.csselly.selector
Class PseudoFunction<E>
- java.lang.Object
-
- jodd.csselly.selector.PseudoFunction<E>
-
- Direct Known Subclasses:
PseudoFunctions.CONTAINS,PseudoFunctions.EQ,PseudoFunctions.GT,PseudoFunctions.HAS,PseudoFunctions.LT,PseudoFunctions.NOT,PseudoFunctions.NTH_CHILD,PseudoFunctions.NTH_LAST_CHILD,PseudoFunctions.NTH_LAST_OF_TYPE,PseudoFunctions.NTH_OF_TYPE
public abstract class PseudoFunction<E> extends java.lang.ObjectPseudo functions.
-
-
Constructor Summary
Constructors Constructor Description PseudoFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPseudoFunctionName()Returns pseudo-function name.abstract booleanmatch(Node node, E expression)Matches node using provided parsed expression.booleanmatchInRange(java.util.List<Node> matchedResults, Node node, int index, E expression)Returnstrueif node matches the pseudo-class within currently matched results.abstract EparseExpression(java.lang.String expression)Parses expression before usage.
-
-
-
Method Detail
-
parseExpression
public abstract E parseExpression(java.lang.String expression)
Parses expression before usage.
-
match
public abstract boolean match(Node node, E expression)
Matches node using provided parsed expression.
-
matchInRange
public boolean matchInRange(java.util.List<Node> matchedResults, Node node, int index, E expression)
Returnstrueif node matches the pseudo-class within currently matched results.
-
getPseudoFunctionName
public java.lang.String getPseudoFunctionName()
Returns pseudo-function name.
-
-