Module dev.civl.mc

Interface RecDomainLiteralExpression

All Superinterfaces:
Expression, LiteralExpression, Sourceable

public interface RecDomainLiteralExpression extends LiteralExpression
This is a rectangular domain literal expression, which is the Cartesian product of a number of ranges, e.g., {range1, range2, range3, ...}.
  • Method Details

    • rangeAt

      Expression rangeAt(int index)
      Returns the range expression of the domain literal at the given index.
      Parameters:
      index - The index of the range to be returned.
      Returns:
      The range expression of the domain literal at the given index.
    • dimension

      int dimension()
      Returns the dimension of this domain literal, which is equal to the number of ranges.
      Returns:
      The dimension of this domain literal, which is equal to the number of ranges.