Interface CSSMathValue

All Superinterfaces:
Cloneable, CSSPrimitiveValue, CSSTypedValue, CSSValue
All Known Subinterfaces:
CSSExpressionValue, CSSMathFunctionValue
All Known Implementing Classes:
CalcValue, ExpressionValue, MathFunctionValue

public interface CSSMathValue extends CSSTypedValue
Values involving mathematical computations.
  • Method Details

    • computeUnitType

      short computeUnitType()
      Performs a dimensional analysis of this expression and computes the unit type of the result.
      Returns:
      the unit type of the result, as in CSSUnit.
    • isExpectingInteger

      boolean isExpectingInteger()
      Whether this value expects an integer result that must be rounded.
      Returns:
      true if the result of this computation must be rounded to the nearest integer.