Class 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
      boolean match​(Node node, java.lang.Integer expression)
      Matches node using provided parsed expression.
      boolean matchInRange​(java.util.List<Node> matchedResults, Node node, int index, java.lang.Integer expression)
      Returns true if node matches the pseudo-class within currently matched results.
      java.lang.Integer parseExpression​(java.lang.String expression)
      Parses expression before usage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LT

        public LT()
    • Method Detail

      • parseExpression

        public java.lang.Integer parseExpression​(java.lang.String expression)
        Description copied from class: PseudoFunction
        Parses expression before usage.
        Specified by:
        parseExpression in class PseudoFunction<java.lang.Integer>
      • match

        public boolean match​(Node node,
                             java.lang.Integer expression)
        Description copied from class: PseudoFunction
        Matches node using provided parsed expression.
        Specified by:
        match in class PseudoFunction<java.lang.Integer>
      • matchInRange

        public boolean matchInRange​(java.util.List<Node> matchedResults,
                                    Node node,
                                    int index,
                                    java.lang.Integer expression)
        Description copied from class: PseudoFunction
        Returns true if node matches the pseudo-class within currently matched results.
        Overrides:
        matchInRange in class PseudoFunction<java.lang.Integer>