-
public final class CSSRuleCSS rule representation.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringstyleSheetIdprivate final SelectorListselectorListprivate final StyleSheetOriginoriginprivate final CSSStylestyleprivate final List<CSSMedia>media
-
Constructor Summary
Constructors Constructor Description CSSRule(String styleSheetId, SelectorList selectorList, StyleSheetOrigin origin, CSSStyle style, List<CSSMedia> media)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final SelectorListcomponent2()final StyleSheetOrigincomponent3()final CSSStylecomponent4()final List<CSSMedia>component5()final CSSRulecopy(String styleSheetId, SelectorList selectorList, StyleSheetOrigin origin, CSSStyle style, List<CSSMedia> media)final StringgetStyleSheetId()The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from. final SelectorListgetSelectorList()Rule selector data. final StyleSheetOrigingetOrigin()Parent stylesheet's origin. final CSSStylegetStyle()Associated style declaration. final List<CSSMedia>getMedia()Media list array (for rules involving media queries). -
-
Constructor Detail
-
CSSRule
CSSRule(String styleSheetId, SelectorList selectorList, StyleSheetOrigin origin, CSSStyle style, List<CSSMedia> media)
-
-
Method Detail
-
component1
final String component1()
-
component2
final SelectorList component2()
-
component3
final StyleSheetOrigin component3()
-
component4
final CSSStyle component4()
-
component5
final List<CSSMedia> component5()
-
copy
final CSSRule copy(String styleSheetId, SelectorList selectorList, StyleSheetOrigin origin, CSSStyle style, List<CSSMedia> media)
-
getStyleSheetId
final String getStyleSheetId()
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
-
getSelectorList
final SelectorList getSelectorList()
Rule selector data.
-
getOrigin
final StyleSheetOrigin getOrigin()
Parent stylesheet's origin.
-
-
-
-