Package jodd.csselly.selector
Class PseudoFunctions.LT
- java.lang.Object
-
- jodd.csselly.selector.PseudoFunction<java.lang.Integer>
-
- jodd.csselly.selector.PseudoFunctions.LT
-
- Enclosing interface:
- PseudoFunctions
public static class PseudoFunctions.LT extends PseudoFunction<java.lang.Integer>
Select all elements at an index less than index within the matched set.
-
-
Constructor Summary
Constructors Constructor Description LT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(Node node, java.lang.Integer expression)Matches node using provided parsed expression.booleanmatchInRange(java.util.List<Node> matchedResults, Node node, int index, java.lang.Integer expression)Returnstrueif node matches the pseudo-class within currently matched results.java.lang.IntegerparseExpression(java.lang.String expression)Parses expression before usage.-
Methods inherited from class jodd.csselly.selector.PseudoFunction
getPseudoFunctionName
-
-
-
-
Method Detail
-
parseExpression
public java.lang.Integer parseExpression(java.lang.String expression)
Description copied from class:PseudoFunctionParses expression before usage.- Specified by:
parseExpressionin classPseudoFunction<java.lang.Integer>
-
match
public boolean match(Node node, java.lang.Integer expression)
Description copied from class:PseudoFunctionMatches node using provided parsed expression.- Specified by:
matchin classPseudoFunction<java.lang.Integer>
-
matchInRange
public boolean matchInRange(java.util.List<Node> matchedResults, Node node, int index, java.lang.Integer expression)
Description copied from class:PseudoFunctionReturnstrueif node matches the pseudo-class within currently matched results.- Overrides:
matchInRangein classPseudoFunction<java.lang.Integer>
-
-