- All Superinterfaces:
Condition
Based on SAC's
CombinatorCondition interface by Philippe Le Hegaret.
Represents two or more chained conditions in a compound selector.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.nsac.Condition
Condition.ConditionType -
Method Summary
Modifier and TypeMethodDescriptiongetCondition(int index) Get the condition at indexindex.The first condition.intGet the number of conditions in this combinator.The second condition.Methods inherited from interface io.sf.carte.doc.style.css.nsac.Condition
getConditionType
-
Method Details
-
getFirstCondition
Condition getFirstCondition()The first condition.- Returns:
- the first condition.
-
getSecondCondition
Condition getSecondCondition()The second condition.- Returns:
- the second condition.
-
getCondition
Get the condition at indexindex.- Parameters:
index- the index. A value of0retrieves the first condition.- Returns:
- the condition.
- Throws:
ArrayIndexOutOfBoundsException- if the index is invalid.
-
getLength
int getLength()Get the number of conditions in this combinator.- Returns:
- the number of conditions (always two at least).
-