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 java.lang.Object
CSSStyleSheetRuleIndex.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
CSSStyleSheetImpl.CSSStyleSheetRuleIndex.SelectorIndex
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<CSSStyleSheetImpl.CSSStyleSheetRuleIndex>
children_
private CSSStyleSheetImpl.CSSStyleSheetRuleIndex.SelectorIndex
classSelectors_
private static MediaListImpl
DEFAULT_MEDIA_LIST
private CSSStyleSheetImpl.CSSStyleSheetRuleIndex.SelectorIndex
elementSelectors_
private MediaListImpl
mediaList_
private java.util.List<CSSStyleSheetImpl.SelectorEntry>
otherSelectors_
-
Constructor Summary
Constructors Constructor Description CSSStyleSheetRuleIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClassSelector(ElementSelector elementSelector, java.lang.String className, Selector s, CSSStyleRuleImpl styleRule)
Add a ClassSelector.void
addElementSelector(ElementSelector elementSelector, Selector s, CSSStyleRuleImpl styleRule)
Add an ElementSelector.CSSStyleSheetImpl.CSSStyleSheetRuleIndex
addMedia(MediaListImpl mediaList)
Add a media list.void
addOtherSelector(Selector s, CSSStyleRuleImpl styleRule)
Add a OtherSelector.java.util.List<CSSStyleSheetImpl.CSSStyleSheetRuleIndex>
getChildren()
MediaListImpl
getMediaList()
java.util.Iterator<CSSStyleSheetImpl.SelectorEntry>
getSelectorEntriesIteratorFor(java.lang.String elementName, java.lang.String[] classes)
-
-
-
Field Detail
-
DEFAULT_MEDIA_LIST
private static final MediaListImpl DEFAULT_MEDIA_LIST
-
children_
private final java.util.List<CSSStyleSheetImpl.CSSStyleSheetRuleIndex> children_
-
mediaList_
private MediaListImpl mediaList_
-
elementSelectors_
private final CSSStyleSheetImpl.CSSStyleSheetRuleIndex.SelectorIndex elementSelectors_
-
classSelectors_
private final CSSStyleSheetImpl.CSSStyleSheetRuleIndex.SelectorIndex classSelectors_
-
otherSelectors_
private final java.util.List<CSSStyleSheetImpl.SelectorEntry> otherSelectors_
-
-
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, java.lang.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 java.util.List<CSSStyleSheetImpl.CSSStyleSheetRuleIndex> getChildren()
- Returns:
- the children
-
getSelectorEntriesIteratorFor
public java.util.Iterator<CSSStyleSheetImpl.SelectorEntry> getSelectorEntriesIteratorFor(java.lang.String elementName, java.lang.String[] classes)
- Parameters:
elementName
- the elementclasses
- the classes- Returns:
- Iterator of SelectorEntry
-
-