Class CssDeclarationNode
- java.lang.Object
-
- com.google.common.css.compiler.ast.CssNode
-
- com.google.common.css.compiler.ast.CssDeclarationNode
-
-
Constructor Summary
Constructors Constructor Description CssDeclarationNode(CssDeclarationNode node)Copy constructor.CssDeclarationNode(CssPropertyNode propertyName)Constructor of a node representing a CSS declaration.CssDeclarationNode(CssPropertyNode propertyNode, CssPropertyValueNode cssPropertyValueNode)CssDeclarationNode(CssPropertyNode propertyName, CssPropertyValueNode propertyValue, SourceCodeLocation sourceCodeLocation)Constructor of a node representing a CSS declaration.CssDeclarationNode(CssPropertyNode propertyName, CssPropertyValueNode propertyValue, java.util.List<CssCommentNode> comments, SourceCodeLocation sourceCodeLocation)Constructor of a node representing a CSS declaration.CssDeclarationNode(CssPropertyNode propertyName, CssPropertyValueNode propertyValue, java.util.List<CssCommentNode> comments, SourceCodeLocation sourceCodeLocation, boolean hasStarHack)Constructor of a node representing a CSS declaration.CssDeclarationNode(CssPropertyNode propertyName, SourceCodeLocation sourceCodeLocation)Constructor of a node representing a CSS declaration.CssDeclarationNode(CssPropertyNode propertyName, java.util.List<CssCommentNode> comments)Constructor of a node representing a CSS declaration.CssDeclarationNode(CssPropertyNode propertyName, java.util.List<CssCommentNode> comments, SourceCodeLocation sourceCodeLocation)Constructor of a node representing a CSS declaration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CssDeclarationNodedeepCopy()CssPropertyNodegetPropertyName()CssPropertyValueNodegetPropertyValue()booleanhasStarHack()Returns the value of this node'shasStarHackattribute.booleanisCustomDeclaration()voidsetPropertyName(CssPropertyNode propertyName)voidsetPropertyValue(CssPropertyValueNode propertyValue)voidsetStarHack(boolean hasStarHack)Sets the hasStarHack attribute to the given value.java.lang.StringtoString()For debugging only.-
Methods inherited from class com.google.common.css.compiler.ast.CssNode
ancestors, appendComment, deepCopyNodes, equals, getComments, getParent, getShouldBeFlipped, getSourceCodeLocation, getVisitController, hasComment, hashCode, inFunArgs, setComments, setShouldBeFlipped, setSourceCodeLocation
-
-
-
-
Constructor Detail
-
CssDeclarationNode
public CssDeclarationNode(CssPropertyNode propertyName)
Constructor of a node representing a CSS declaration.
-
CssDeclarationNode
public CssDeclarationNode(CssPropertyNode propertyName, @Nullable SourceCodeLocation sourceCodeLocation)
Constructor of a node representing a CSS declaration.- Parameters:
propertyName- propertyNamesourceCodeLocation- sourceCodeLocation
-
CssDeclarationNode
public CssDeclarationNode(CssPropertyNode propertyName, java.util.List<CssCommentNode> comments)
Constructor of a node representing a CSS declaration.- Parameters:
propertyName- propertyNamecomments- comments
-
CssDeclarationNode
public CssDeclarationNode(CssPropertyNode propertyName, java.util.List<CssCommentNode> comments, @Nullable SourceCodeLocation sourceCodeLocation)
Constructor of a node representing a CSS declaration.- Parameters:
propertyName- propertyNamecomments- commentssourceCodeLocation- sourceCodeLocation
-
CssDeclarationNode
public CssDeclarationNode(CssPropertyNode propertyName, CssPropertyValueNode propertyValue, @Nullable SourceCodeLocation sourceCodeLocation)
Constructor of a node representing a CSS declaration.- Parameters:
propertyName-propertyValue-sourceCodeLocation-
-
CssDeclarationNode
public CssDeclarationNode(CssPropertyNode propertyName, CssPropertyValueNode propertyValue, @Nullable java.util.List<CssCommentNode> comments, @Nullable SourceCodeLocation sourceCodeLocation)
Constructor of a node representing a CSS declaration.- Parameters:
propertyName- propertyNamepropertyValue- propertyValuecomments- commentssourceCodeLocation- sourceCodeLocation
-
CssDeclarationNode
public CssDeclarationNode(CssPropertyNode propertyName, CssPropertyValueNode propertyValue, @Nullable java.util.List<CssCommentNode> comments, @Nullable SourceCodeLocation sourceCodeLocation, boolean hasStarHack)
Constructor of a node representing a CSS declaration.
-
CssDeclarationNode
public CssDeclarationNode(CssDeclarationNode node)
Copy constructor.
-
CssDeclarationNode
public CssDeclarationNode(CssPropertyNode propertyNode, CssPropertyValueNode cssPropertyValueNode)
-
-
Method Detail
-
deepCopy
public CssDeclarationNode deepCopy()
-
getPropertyName
public CssPropertyNode getPropertyName()
-
setPropertyName
public void setPropertyName(CssPropertyNode propertyName)
-
getPropertyValue
public CssPropertyValueNode getPropertyValue()
-
setPropertyValue
public void setPropertyValue(CssPropertyValueNode propertyValue)
-
setStarHack
public void setStarHack(boolean hasStarHack)
Sets the hasStarHack attribute to the given value.- Parameters:
hasStarHack-
-
hasStarHack
public boolean hasStarHack()
Returns the value of this node'shasStarHackattribute.- Returns:
trueif this node'shasStarHackis set to true.
-
isCustomDeclaration
public boolean isCustomDeclaration()
- Returns:
- whether this node represents the declaration of a CSS custom property.
-
-