Class CSSRuleListImpl
java.lang.Object
org.htmlunit.cssparser.dom.CSSRuleListImpl
- All Implemented Interfaces:
Serializable
Implementation of CSSRuleList.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AbstractCSSRuleImpl rule) Add a rule.voiddelete(int index) Delete the rule at the given pos.booleanprivate booleanintgetRules()inthashCode()voidinsert(AbstractCSSRuleImpl rule, int index) Insert a rule at the given pos.toString()
-
Field Details
-
rules_
-
-
Constructor Details
-
CSSRuleListImpl
public CSSRuleListImpl()Ctor.
-
-
Method Details
-
getRules
- Returns:
- the rules
-
getLength
public int getLength()- Returns:
- the number of rules
-
add
-
insert
Insert a rule at the given pos.- Parameters:
rule- the rule to be insertedindex- the insert pos
-
delete
public void delete(int index) Delete the rule at the given pos.- Parameters:
index- the delete pos
-
toString
-
equals
-
equalsRules
-
hashCode
-