Package org.htmlunit.cssparser.dom
Class CSSStyleSheetImpl.CSSStyleSheetRuleIndex
java.lang.Object
org.htmlunit.cssparser.dom.CSSStyleSheetImpl.CSSStyleSheetRuleIndex
- Enclosing class:
CSSStyleSheetImpl
CSSStyleSheetRuleIndex.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addClassSelector
(ElementSelector elementSelector, String className, Selector s, CSSStyleRuleImpl styleRule) Add a ClassSelector.void
addElementSelector
(ElementSelector elementSelector, Selector s, CSSStyleRuleImpl styleRule) Add an ElementSelector.addMedia
(MediaListImpl mediaList) Add a media list.void
addOtherSelector
(Selector s, CSSStyleRuleImpl styleRule) Add a OtherSelector.getSelectorEntriesIteratorFor
(String elementName, String[] classes)
-
Constructor Details
-
CSSStyleSheetRuleIndex
public CSSStyleSheetRuleIndex()
-
-
Method Details
-
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
Add a OtherSelector.- Parameters:
s
- the selectorstyleRule
- the rule
-
addMedia
Add a media list.- Parameters:
mediaList
- the list to add- Returns:
- the CSSStyleSheetRuleIndex
-
getMediaList
- Returns:
- return the medial list
-
getChildren
- Returns:
- the children
-
getSelectorEntriesIteratorFor
public Iterator<CSSStyleSheetImpl.SelectorEntry> getSelectorEntriesIteratorFor(String elementName, String[] classes) - Parameters:
elementName
- the elementclasses
- the classes- Returns:
- Iterator of SelectorEntry
-