Class CSSStyleSheetImpl.CSSStyleSheetRuleIndex

java.lang.Object
org.htmlunit.cssparser.dom.CSSStyleSheetImpl.CSSStyleSheetRuleIndex
Enclosing class:
CSSStyleSheetImpl

public static class CSSStyleSheetImpl.CSSStyleSheetRuleIndex extends Object
Rule index helper for stylesheet selector lookups.
  • Constructor Details

    • CSSStyleSheetRuleIndex

      public CSSStyleSheetRuleIndex()
  • Method Details

    • addElementSelector

      public void addElementSelector(ElementSelector elementSelector, Selector s, CSSStyleRuleImpl styleRule)
      Adds an ElementSelector.
      Parameters:
      elementSelector - the selector to be added
      s - the selector
      styleRule - the rule
    • addClassSelector

      public void addClassSelector(ElementSelector elementSelector, String className, Selector s, CSSStyleRuleImpl styleRule)
      Adds a ClassSelector.
      Parameters:
      elementSelector - the selector to be added
      className - the class name
      s - the selector
      styleRule - the rule
    • addOtherSelector

      public void addOtherSelector(Selector s, CSSStyleRuleImpl styleRule)
      Adds an OtherSelector.
      Parameters:
      s - the selector
      styleRule - the rule
    • addMedia

      Adds a media list.
      Parameters:
      mediaList - the list to add
      Returns:
      the CSSStyleSheetRuleIndex
    • getMediaList

      public MediaListImpl getMediaList()
      Returns the media list.
      Returns:
      the media list
    • getChildren

      Returns the children.
      Returns:
      the children
    • getSelectorEntriesIteratorFor

      public Iterator<CSSStyleSheetImpl.SelectorEntry> getSelectorEntriesIteratorFor(String elementName, String[] classes)
      Returns an iterator over selector entries for the specified element and classes.
      Parameters:
      elementName - the element
      classes - the classes
      Returns:
      Iterator of SelectorEntry