public class RuleSetImpl extends AbstractRuleBlock<Declaration> implements RuleSet
RuleBlock.Priority| Modifier and Type | Field and Description |
|---|---|
protected List<CombinedSelector> |
selectors |
priority, stylesheethash, listmodCount| Modifier | Constructor and Description |
|---|---|
protected |
RuleSetImpl(RuleBlock.Priority priority) |
protected |
RuleSetImpl(RuleSet rs)
Shallow copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<CombinedSelector> |
getSelectors()
Gets selectors of given declaration
|
int |
hashCode() |
RuleSet |
setSelectors(List<CombinedSelector> selectors)
Sets selectors for this CSS declarations
|
String |
toString() |
String |
toString(int depth)
Pretty output of CSS definition using indentation
|
compareTo, getPriority, getStyleSheet, setPriority, setStyleSheetadd, add, asList, get, iterator, remove, replaceAll, set, size, unlockaddAll, clear, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPriority, getStyleSheet, setPriority, setStyleSheetasList, replaceAll, unlockadd, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArraycompareToprotected List<CombinedSelector> selectors
protected RuleSetImpl(RuleBlock.Priority priority)
protected RuleSetImpl(RuleSet rs)
rs - RuleSet to share selectors and declarations withpublic List<CombinedSelector> getSelectors()
RuleSetgetSelectors in interface RuleSetpublic RuleSet setSelectors(List<CombinedSelector> selectors)
RuleSetsetSelectors in interface RuleSetselectors - the selectors to setpublic String toString()
toString in class AbstractCollection<Declaration>public String toString(int depth)
PrettyOutputtoString in interface PrettyOutputdepth - Number of times output is indentedOutputUtilpublic int hashCode()
hashCode in interface Collection<Declaration>hashCode in interface List<Declaration>hashCode in class AbstractRuleBlock<Declaration>public boolean equals(Object obj)
equals in interface Collection<Declaration>equals in interface List<Declaration>equals in class AbstractRuleBlock<Declaration>Copyright © 2014. All rights reserved.