public class Declaration extends ASTCssNode
| Constructor and Description |
|---|
Declaration(HiddenTokenAwareTree token,
String name) |
Declaration(HiddenTokenAwareTree token,
String name,
Expression expression) |
Declaration(HiddenTokenAwareTree token,
String name,
Expression expression,
boolean important) |
| Modifier and Type | Method and Description |
|---|---|
Declaration |
clone() |
List<? extends ASTCssNode> |
getChilds()
WARNING: it is up to the programmer to keep parent and childs getters
and setters consistent.
|
Expression |
getExpression() |
String |
getName() |
ASTCssNodeType |
getType() |
boolean |
isFontDeclaration() |
boolean |
isImportant() |
void |
setExpression(Expression expression) |
void |
setImportant(boolean important) |
void |
setName(String name) |
String |
toString() |
addOpeningComments, addTrailingComments, configureParentToAllChilds, getCharPositionInSourceLine, getOpeningComments, getOrphanComments, getParent, getSourceLine, getTrailingComments, getUnderlyingStructure, isFaulty, setOpeningComments, setOrphanComments, setParent, setTrailingComments, setUnderlyingStructurepublic Declaration(HiddenTokenAwareTree token, String name)
public Declaration(HiddenTokenAwareTree token, String name, Expression expression)
public Declaration(HiddenTokenAwareTree token, String name, Expression expression, boolean important)
public String getName()
public Expression getExpression()
public boolean isImportant()
public void setName(String name)
public void setExpression(Expression expression)
public void setImportant(boolean important)
public ASTCssNodeType getType()
getType in class ASTCssNodepublic List<? extends ASTCssNode> getChilds()
ASTCssNodegetChilds in class ASTCssNodepublic boolean isFontDeclaration()
public Declaration clone()
clone in class ASTCssNodeCopyright © 2012-2013. All Rights Reserved.