public class Media extends ASTCssNode implements BodyOwner<GeneralBody>
| Constructor and Description |
|---|
Media(HiddenTokenAwareTree token) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMediaQuery(MediaQuery medium) |
Media |
clone() |
GeneralBody |
getBody() |
List<ASTCssNode> |
getChilds()
WARNING: it is up to the programmer to keep parent and childs getters
and setters consistent.
|
List<MediaQuery> |
getMediums() |
ASTCssNodeType |
getType() |
void |
replaceMediaQueries(List<MediaQuery> result) |
void |
setBody(GeneralBody body) |
void |
setMediums(List<MediaQuery> mediums) |
addOpeningComments, addTrailingComments, configureParentToAllChilds, getCharPositionInSourceLine, getOpeningComments, getOrphanComments, getParent, getSource, getSourceLine, getTrailingComments, getUnderlyingStructure, isFaulty, setOpeningComments, setOrphanComments, setParent, setTrailingComments, setUnderlyingStructurepublic Media(HiddenTokenAwareTree token)
public void addMediaQuery(MediaQuery medium)
public List<MediaQuery> getMediums()
public void setMediums(List<MediaQuery> mediums)
public void replaceMediaQueries(List<MediaQuery> result)
public List<ASTCssNode> getChilds()
ASTCssNodegetChilds in class ASTCssNodepublic ASTCssNodeType getType()
getType in class ASTCssNodepublic Media clone()
clone in class ASTCssNodepublic void setBody(GeneralBody body)
setBody in interface BodyOwner<GeneralBody>public GeneralBody getBody()
getBody in interface BodyOwner<GeneralBody>Copyright © 2012-2013. All Rights Reserved.