public class ReusableStructure extends ASTCssNode implements BodyOwner<GeneralBody>
| Constructor and Description |
|---|
ReusableStructure(HiddenTokenAwareTree token) |
ReusableStructure(HiddenTokenAwareTree token,
List<ReusableStructureName> names) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGuard(Guard guard) |
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 |
hasParameters() |
void |
setBody(GeneralBody body) |
void |
setNames(List<ReusableStructureName> names) |
String |
toString() |
addOpeningComments, addTrailingComments, configureParentToAllChilds, getCharPositionInSourceLine, getOpeningComments, getOrphanComments, getParent, getSource, getSourceLine, getTrailingComments, getUnderlyingStructure, isFaulty, setOpeningComments, setOrphanComments, setParent, setTrailingComments, setUnderlyingStructurepublic ReusableStructure(HiddenTokenAwareTree token)
public ReusableStructure(HiddenTokenAwareTree token, List<ReusableStructureName> names)
public void addName(ReusableStructureName name)
public List<ReusableStructureName> getNames()
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 void addParameter(ASTCssNode parameter)
public void addGuard(Guard guard)
public List<? extends ASTCssNode> getChilds()
ASTCssNodegetChilds in class ASTCssNodepublic ASTCssNodeType getType()
getType in class ASTCssNodepublic ReusableStructure clone()
clone in class ASTCssNodeCopyright © 2012-2013. All Rights Reserved.