Package org.htmlunit.cssparser.dom
Class CSSRuleListImpl
- java.lang.Object
-
- org.htmlunit.cssparser.dom.CSSRuleListImpl
-
- All Implemented Interfaces:
Serializable
public class CSSRuleListImpl extends Object implements Serializable
Implementation of CSSRuleList.- Author:
- Ronald Brill
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CSSRuleListImpl()Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(AbstractCSSRuleImpl rule)Add a rule.voiddelete(int index)Delete the rule at the given pos.booleanequals(Object obj)intgetLength()getLength.List<AbstractCSSRuleImpl>getRules()getRules.inthashCode()voidinsert(AbstractCSSRuleImpl rule, int index)Insert a rule at the given pos.StringtoString()
-
-
-
Method Detail
-
getRules
public List<AbstractCSSRuleImpl> getRules()
getRules.
- Returns:
- the rules
-
getLength
public int getLength()
getLength.
- Returns:
- the number of rules
-
add
public void add(AbstractCSSRuleImpl rule)
Add a rule.- Parameters:
rule- the rule to be added
-
insert
public void insert(AbstractCSSRuleImpl rule, int index)
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
-
-