Class PseudoClasses.FIRST

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

public static class PseudoClasses.FIRST extends PseudoClass
Selects the first matched element.
  • Constructor Details

    • FIRST

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