Class CssNumericNode
java.lang.Object
com.google.common.css.compiler.ast.CssNode
com.google.common.css.compiler.ast.CssValueNode
com.google.common.css.compiler.ast.CssNumericNode
- All Implemented Interfaces:
Locatable
A CSS node containing a numeric value such as height, width, length,
or percentage values.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCssNumericNode(CssNumericNode node) Copy constructor.CssNumericNode(String value, String unit) Constructor of a numeric node.CssNumericNode(String value, String unit, SourceCodeLocation sourceCodeLocation) Constructor of a numeric node. -
Method Summary
Methods inherited from class com.google.common.css.compiler.ast.CssValueNode
getIsDefault, setIsDefaultMethods 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
-
Field Details
-
NO_UNITS
Constant value for the units field for a node without units.- See Also:
-
-
Constructor Details
-
CssNumericNode
Constructor of a numeric node.- Parameters:
value- valueunit- unit
-
CssNumericNode
Constructor of a numeric node.- Parameters:
value- valueunit- unitsourceCodeLocation- sourceCodeLocation
-
CssNumericNode
Copy constructor.- Parameters:
node- node
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin classCssValueNode
-
getUnit
-
setUnit
-
getNumericPart
-
setNumericPart
-
setValue
Description copied from class:CssValueNodeSubclasses should perform additional consistency checks. For example, a boolean expression node will not allow setting this as boolean expression trees are immutable.- Overrides:
setValuein classCssValueNode
-
getValue
- Overrides:
getValuein classCssValueNode
-
toString
Description copied from class:CssValueNodeUse for debugging only.- Overrides:
toStringin classCssValueNode- See Also:
-