public class RuleSet extends ASTCssNode
| Constructor and Description |
|---|
RuleSet(HiddenTokenAwareTree token) |
RuleSet(HiddenTokenAwareTree token,
RuleSetsBody body,
List<Selector> selectors) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSelector(Selector selector) |
void |
addSelectors(List<Selector> selectors) |
RuleSet |
clone() |
ReusableStructure |
convertToReusableStructure()
Behavior of this method is undefined if it is not mixin.
|
List<String> |
extractReusableStructureNames()
Behavior of this method is undefined if it is not a namespace.
|
RuleSetsBody |
getBody() |
List<? extends ASTCssNode> |
getChilds()
WARNING: it is up to the programmer to keep parent and childs getters
and setters consistent.
|
List<Selector> |
getSelectors() |
ASTCssNodeType |
getType() |
boolean |
hasEmptyBody() |
void |
replaceSelectors(List<Selector> result) |
void |
setBody(RuleSetsBody body) |
boolean |
usableAsReusableStructure() |
addOpeningComments, addTrailingComments, configureParentToAllChilds, getCharPositionInSourceLine, getOpeningComments, getOrphanComments, getParent, getSourceLine, getTrailingComments, getUnderlyingStructure, isFaulty, setOpeningComments, setOrphanComments, setParent, setTrailingComments, setUnderlyingStructurepublic RuleSet(HiddenTokenAwareTree token)
public RuleSet(HiddenTokenAwareTree token, RuleSetsBody body, List<Selector> selectors)
public RuleSetsBody getBody()
public boolean hasEmptyBody()
public void setBody(RuleSetsBody body)
public boolean usableAsReusableStructure()
public ReusableStructure convertToReusableStructure()
public List<String> extractReusableStructureNames()
public List<? extends ASTCssNode> getChilds()
ASTCssNodegetChilds in class ASTCssNodepublic void addSelector(Selector selector)
public RuleSet clone()
clone in class ASTCssNodepublic ASTCssNodeType getType()
getType in class ASTCssNodeCopyright © 2012-2013. All Rights Reserved.