Class PseudoClasses.LAST

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

public static class PseudoClasses.LAST extends PseudoClass
Selects the last matched element. Note that :last selects a single element by filtering the current collection and matching the last element within it.
  • Constructor Details

    • LAST

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