Package org.htmlunit.cssparser.dom
Class CSSRuleListImpl
- java.lang.Object
-
- org.htmlunit.cssparser.dom.CSSRuleListImpl
-
- All Implemented Interfaces:
java.io.Serializable
public class CSSRuleListImpl extends java.lang.Object implements java.io.Serializable
Implementation of CSSRuleList.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AbstractCSSRuleImpl>
rules_
-
Constructor Summary
Constructors Constructor Description CSSRuleListImpl()
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(AbstractCSSRuleImpl rule)
Add a rule.void
delete(int index)
Delete the rule at the given pos.boolean
equals(java.lang.Object obj)
private boolean
equalsRules(CSSRuleListImpl crl)
int
getLength()
java.util.List<AbstractCSSRuleImpl>
getRules()
int
hashCode()
void
insert(AbstractCSSRuleImpl rule, int index)
Insert a rule at the given pos.java.lang.String
toString()
-
-
-
Field Detail
-
rules_
private final java.util.List<AbstractCSSRuleImpl> rules_
-
-
Method Detail
-
getRules
public java.util.List<AbstractCSSRuleImpl> getRules()
- Returns:
- the rules
-
getLength
public int 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
equalsRules
private boolean equalsRules(CSSRuleListImpl crl)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-