Module dev.civl.mc

Interface SubscriptExpression

All Superinterfaces:
Expression, LHSExpression, Sourceable

public interface SubscriptExpression extends LHSExpression
a[i], where "a" is an array and "i" is an expression evaluating to an integer.
  • Method Details

    • array

      LHSExpression array()
      Returns:
      The expression for the array.
    • index

      Expression index()
      Returns:
      The expression for the index.
    • setArray

      void setArray(LHSExpression array)
      Parameters:
      array - The expression for the array.
    • setIndex

      void setIndex(Expression index)
      Parameters:
      index - The expression for the index.