public class RuleSetImpl extends AbstractRuleBlock<Declaration> implements RuleSet
| Modifier and Type | Field and Description |
|---|---|
protected CombinedSelector[] |
selectors |
stylesheethash, listmodCount| Modifier | Constructor and Description |
|---|---|
protected |
RuleSetImpl() |
|
RuleSetImpl(CombinedSelector[] selectors) |
protected |
RuleSetImpl(RuleSet rs)
Shallow copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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
|
getStyleSheet, 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, waitgetStyleSheet, setStyleSheetasList, replaceAll, unlockadd, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamprotected CombinedSelector[] selectors
protected RuleSetImpl()
public RuleSetImpl(CombinedSelector[] selectors)
protected RuleSetImpl(RuleSet rs)
rs - RuleSet to share selectors and declarations withpublic 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 © 2019. All rights reserved.