Class PseudoClasses.ODD

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

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

    • ODD

      public ODD()
  • 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