Class CssNumericNode

All Implemented Interfaces:
Locatable

public class CssNumericNode extends CssValueNode
A CSS node containing a numeric value such as height, width, length, or percentage values.
  • Field Details

    • NO_UNITS

      public static final String NO_UNITS
      Constant value for the units field for a node without units.
      See Also:
  • Constructor Details

    • CssNumericNode

      public CssNumericNode(String value, String unit)
      Constructor of a numeric node.
      Parameters:
      value - value
      unit - unit
    • CssNumericNode

      public CssNumericNode(String value, String unit, @Nullable SourceCodeLocation sourceCodeLocation)
      Constructor of a numeric node.
      Parameters:
      value - value
      unit - unit
      sourceCodeLocation - sourceCodeLocation
    • CssNumericNode

      public CssNumericNode(CssNumericNode node)
      Copy constructor.
      Parameters:
      node - node
  • Method Details