Package org.htmlunit.cssparser.dom
Class CSSRuleListImpl
java.lang.Object
org.htmlunit.cssparser.dom.CSSRuleListImpl
- All Implemented Interfaces:
Serializable
Implementation of CSSRuleList.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(AbstractCSSRuleImpl rule) Add a rule.void
delete
(int index) Delete the rule at the given pos.boolean
int
getLength.getRules()
getRules.int
hashCode()
void
insert
(AbstractCSSRuleImpl rule, int index) Insert a rule at the given pos.toString()
-
Constructor Details
-
CSSRuleListImpl
public CSSRuleListImpl()Ctor.
-
-
Method Details
-
getRules
getRules.
- Returns:
- the rules
-
getLength
public int getLength()getLength.
- Returns:
- the number of rules
-
add
Add a rule.- Parameters:
rule
- the rule to be added
-
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
-
hashCode
public int hashCode()
-