Interface CSSExpression

All Known Subinterfaces:
AlgebraicExpression, CSSOperandExpression

public interface CSSExpression
  • Method Details

    • getCssText

      String getCssText()
      Get a string representation of the expression.
      Returns:
      a string representation of the expression.
    • getMinifiedCssText

      String getMinifiedCssText()
      Get a minified string representation of the expression.
      Returns:
      a minified string representation of the expression.
    • writeCssText

      void writeCssText(SimpleWriter wri) throws IOException
      Serialize this expression to a SimpleWriter.
      Parameters:
      wri - the SimpleWriter.
      Throws:
      IOException - if an error happened while writing.
    • getParentExpression

      CSSExpression getParentExpression()

      Get the parent expression. In a nested expression, the outer expression is the parent.

      For example, in a * (b + c), being the sum (b + c) this expression, its parent would be the product by a.

      Returns:
      the parent expression, null if none (this is root expression).
    • isInverseOperation

      boolean isInverseOperation()
      Is this an inverse operation ?

      If there is a containing operation, the inverse is from the point of view of the parent operation. In a sum (or a product contained inside a sum), the inverse means that the minus sign applies to the whole operation. In a product it is a division.

      Returns:
      true if the operation is inverse.
    • getPartType

      Returns:
      the type of part (operation, operand).
    • clone

      CSSExpression clone()
      Create and return a copy of this object.
      Returns:
      a copy of this object.