Class PseudoClass

    • Constructor Summary

      Constructors 
      Constructor Description
      PseudoClass()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPseudoClassName()
      Returns pseudo-class name from simple class name.
      abstract boolean match​(Node node)
      Returns true if node matches the pseudo-class.
      boolean matchInRange​(java.util.List<Node> matchedResults, Node node, int index)
      Returns true if node matches the pseudo-class within current results.
      • Methods inherited from class java.lang.Object

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

      • PseudoClass

        public PseudoClass()
    • Method Detail

      • match

        public abstract boolean match​(Node node)
        Returns true if node matches the pseudo-class.
      • matchInRange

        public boolean matchInRange​(java.util.List<Node> matchedResults,
                                    Node node,
                                    int index)
        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.
      • getPseudoClassName

        public java.lang.String getPseudoClassName()
        Returns pseudo-class name from simple class name.