public class RuleSet extends ASTCssNode implements BodyOwner<GeneralBody>
| Constructor and Description |
|---|
RuleSet(HiddenTokenAwareTree token) |
RuleSet(HiddenTokenAwareTree token,
GeneralBody body,
List<Selector> selectors) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGuards(Guard guard) |
void |
addGuards(List<Guard> guards) |
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.
|
GeneralBody |
getBody() |
List<? extends ASTCssNode> |
getChilds()
WARNING: it is up to the programmer to keep parent and childs getters and
setters consistent.
|
List<Guard> |
getGuards() |
List<Selector> |
getSelectors() |
ASTCssNodeType |
getType() |
boolean |
hasEmptyBody() |
boolean |
isUsableAsReusableStructure() |
void |
removeGuards() |
void |
replaceSelector(Selector oldSelector,
Selector newSelector) |
void |
replaceSelectors(List<Selector> result) |
void |
setBody(GeneralBody body) |
addOpeningComments, addTrailingComments, configureParentToAllChilds, getOpeningComments, getOrphanComments, getParent, getSource, getSourceColumn, getSourceLine, getTrailingComments, getUnderlyingStructure, hasParent, isFaulty, isSilent, setOpeningComments, setOrphanComments, setParent, setSilent, setTrailingComments, setUnderlyingStructurepublic RuleSet(HiddenTokenAwareTree token)
public RuleSet(HiddenTokenAwareTree token, GeneralBody body, List<Selector> selectors)
public GeneralBody getBody()
getBody in interface BodyOwner<GeneralBody>public boolean hasEmptyBody()
public void setBody(GeneralBody body)
setBody in interface BodyOwner<GeneralBody>public boolean isUsableAsReusableStructure()
public ReusableStructure convertToReusableStructure()
public List<String> extractReusableStructureNames()
@NotAstProperty public List<? extends ASTCssNode> getChilds()
ASTCssNodegetChilds in class ASTCssNodepublic void addSelector(Selector selector)
public void addGuards(Guard guard)
public void removeGuards()
public RuleSet clone()
clone in interface PubliclyCloneableclone in class ASTCssNodepublic ASTCssNodeType getType()
getType in class ASTCssNodeCopyright © 2012-2014. All Rights Reserved.