Class CssPropertyNode
java.lang.Object
com.google.common.css.compiler.ast.CssNode
com.google.common.css.compiler.ast.CssValueNode
com.google.common.css.compiler.ast.CssPropertyNode
- All Implemented Interfaces:
Locatable
A node representing a CSS property, such as background or padding.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a property node by deep-copying the specified property node.CssPropertyNode(String value) Creates a property node with the specified value.CssPropertyNode(String value, SourceCodeLocation sourceCodeLocation) Creates a property node with the specified value and source code location. -
Method Summary
Methods inherited from class com.google.common.css.compiler.ast.CssValueNode
getIsDefault, getValue, setIsDefault, setValueMethods 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 Details
-
CssPropertyNode
Creates a property node with the specified value. -
CssPropertyNode
Creates a property node with the specified value and source code location. -
CssPropertyNode
Creates a property node by deep-copying the specified property node.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin classCssValueNode
-
getProperty
-
getPropertyName
-
isCustom
public boolean isCustom()- Returns:
- whether this is a CSS custom property.
-
getPartition
Gets the partition of this property. All properties with the same partition share a common shorthand. A non-standard property is its own single partition.For example,
padding,padding-bottom,padding-left,padding-right,padding-topare all in thepaddingpartition. As another example,z-indexis its own single partition.- Returns:
- a string representing the partition
-
toString
Description copied from class:CssValueNodeUse for debugging only.- Overrides:
toStringin classCssValueNode- See Also:
-