Package org.htmlunit.cssparser.dom
Class CSSStyleSheetImpl.CSSStyleSheetRuleIndex
- java.lang.Object
-
- org.htmlunit.cssparser.dom.CSSStyleSheetImpl.CSSStyleSheetRuleIndex
-
- Enclosing class:
- CSSStyleSheetImpl
public static class CSSStyleSheetImpl.CSSStyleSheetRuleIndex extends Object
CSSStyleSheetRuleIndex.
-
-
Constructor Summary
Constructors Constructor Description CSSStyleSheetRuleIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClassSelector(ElementSelector elementSelector, String className, Selector s, CSSStyleRuleImpl styleRule)Add a ClassSelector.voidaddElementSelector(ElementSelector elementSelector, Selector s, CSSStyleRuleImpl styleRule)Add an ElementSelector.CSSStyleSheetImpl.CSSStyleSheetRuleIndexaddMedia(MediaListImpl mediaList)Add a media list.voidaddOtherSelector(Selector s, CSSStyleRuleImpl styleRule)Add a OtherSelector.List<CSSStyleSheetImpl.CSSStyleSheetRuleIndex>getChildren()MediaListImplgetMediaList()Iterator<CSSStyleSheetImpl.SelectorEntry>getSelectorEntriesIteratorFor(String elementName, String[] classes)
-
-
-
Method Detail
-
addElementSelector
public void addElementSelector(ElementSelector elementSelector, Selector s, CSSStyleRuleImpl styleRule)
Add an ElementSelector.- Parameters:
elementSelector- the selector to be addeds- the selectorstyleRule- the rule
-
addClassSelector
public void addClassSelector(ElementSelector elementSelector, String className, Selector s, CSSStyleRuleImpl styleRule)
Add a ClassSelector.- Parameters:
elementSelector- the selector to be addedclassName- the class names- the selectorstyleRule- the rule
-
addOtherSelector
public void addOtherSelector(Selector s, CSSStyleRuleImpl styleRule)
Add a OtherSelector.- Parameters:
s- the selectorstyleRule- the rule
-
addMedia
public CSSStyleSheetImpl.CSSStyleSheetRuleIndex addMedia(MediaListImpl mediaList)
Add a media list.- Parameters:
mediaList- the list to add- Returns:
- the CSSStyleSheetRuleIndex
-
getMediaList
public MediaListImpl getMediaList()
- Returns:
- return the medial list
-
getChildren
public List<CSSStyleSheetImpl.CSSStyleSheetRuleIndex> getChildren()
- Returns:
- the children
-
getSelectorEntriesIteratorFor
public Iterator<CSSStyleSheetImpl.SelectorEntry> getSelectorEntriesIteratorFor(String elementName, String[] classes)
- Parameters:
elementName- the elementclasses- the classes- Returns:
- Iterator of SelectorEntry
-
-