Class PseudoClasses.EVEN

java.lang.Object
jodd.csselly.selector.PseudoClass
jodd.csselly.selector.PseudoClasses.EVEN
Enclosing interface:
PseudoClasses

public static class PseudoClasses.EVEN extends PseudoClass
Selects even elements, zero-indexed.
  • Constructor Details

    • EVEN

      public EVEN()
  • Method Details

    • match

      public boolean match(Node node)
      Description copied from class: PseudoClass
      Returns true if node matches the pseudo-class.
      Specified by:
      match in class PseudoClass
    • matchInRange

      public boolean matchInRange(List<Node> matchedResults, Node node, int index)
      Description copied from class: PseudoClass
      Returns true if node matches the pseudo-class within current results. This match is all about the range and node position in it. By default, returns true.
      Overrides:
      matchInRange in class PseudoClass