public class ReusableStructure extends ASTCssNode implements BodyOwner<GeneralBody>
| Constructor and Description |
|---|
ReusableStructure(HiddenTokenAwareTree token) |
ReusableStructure(HiddenTokenAwareTree token,
boolean isAlsoRuleset) |
ReusableStructure(HiddenTokenAwareTree token,
List<ReusableStructureName> names,
boolean isAlsoRuleset) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGuard(Guard guard) |
void |
addGuards(List<Guard> guards) |
void |
addName(ReusableStructureName name) |
void |
addParameter(ASTCssNode parameter) |
ReusableStructure |
clone() |
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<ASTCssNode> |
getMandatoryParameters() |
List<ReusableStructureName> |
getNames() |
List<String> |
getNamesAsStrings() |
List<ASTCssNode> |
getParameters() |
ASTCssNodeType |
getType() |
boolean |
hasCollectorParameter() |
boolean |
hasEmptyBody() |
boolean |
hasMandatoryParameters() |
boolean |
hasName(String name) |
boolean |
hasParameters() |
boolean |
isAlsoRuleset() |
void |
setBody(GeneralBody body) |
void |
setNames(List<ReusableStructureName> names) |
String |
toString() |
addOpeningComments, addTrailingComment, addTrailingComments, configureParentToAllChilds, getOpeningComments, getOrphanComments, getParent, getSource, getSourceColumn, getSourceLine, getTrailingComments, getUnderlyingStructure, hasParent, isFaulty, isSilent, setOpeningComments, setOrphanComments, setParent, setSilent, setTrailingComments, setUnderlyingStructurepublic ReusableStructure(HiddenTokenAwareTree token)
public ReusableStructure(HiddenTokenAwareTree token, boolean isAlsoRuleset)
public ReusableStructure(HiddenTokenAwareTree token, List<ReusableStructureName> names, boolean isAlsoRuleset)
public void addName(ReusableStructureName name)
public List<ReusableStructureName> getNames()
public boolean hasName(String name)
public void setNames(List<ReusableStructureName> names)
public GeneralBody getBody()
getBody in interface BodyOwner<GeneralBody>public boolean hasEmptyBody()
public void setBody(GeneralBody body)
setBody in interface BodyOwner<GeneralBody>public List<ASTCssNode> getParameters()
public boolean hasParameters()
public boolean hasCollectorParameter()
public List<ASTCssNode> getMandatoryParameters()
public boolean hasMandatoryParameters()
public void addParameter(ASTCssNode parameter)
public void addGuard(Guard guard)
@NotAstProperty public List<? extends ASTCssNode> getChilds()
ASTCssNodegetChilds in class ASTCssNodepublic ASTCssNodeType getType()
getType in class ASTCssNodepublic boolean isAlsoRuleset()
public ReusableStructure clone()
clone in interface BodyOwner<GeneralBody>clone in interface PubliclyCloneableclone in class ASTCssNodepublic String toString()
toString in class ASTCssNodeCopyright © 2012-2015. All Rights Reserved.