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, getOpeningComments, getOrphanComments, getParent, getSource, getSourceColumn, getSourceLine, getTrailingComments, getUnderlyingStructure, hasParent, isFaulty, isSilent, setOpeningComments, setOrphanComments, setParent, setSilent, 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)
@NotAstProperty public List<ASTCssNode> getChilds()
ASTCssNodegetChilds in class ASTCssNodepublic ASTCssNodeType getType()
getType in class ASTCssNodepublic Media clone()
clone in interface PubliclyCloneableclone in class ASTCssNodepublic void setBody(GeneralBody body)
setBody in interface BodyOwner<GeneralBody>public GeneralBody getBody()
getBody in interface BodyOwner<GeneralBody>Copyright © 2012-2014. All Rights Reserved.