Interface ArrayDesignatorNode

All Superinterfaces:
ASTNode, DesignatorNode

public interface ArrayDesignatorNode extends DesignatorNode
An array designator specifies the index of an element of an array being initialized.
  • Method Details

    • getIndex

      ExpressionNode getIndex()
      Gets the constant expression which yields the index to initialize.
      Returns:
      array index expression
    • setIndex

      void setIndex(ExpressionNode expression)
      Sets the index expression.
      Parameters:
      expression - a constant expression
    • copy

      Description copied from interface: ASTNode
      Returns a deep copy of this AST node. The node and all of its descendants will be cloned. The cloning does not copy analysis or attribute information.
      Specified by:
      copy in interface ASTNode
      Specified by:
      copy in interface DesignatorNode
      Returns:
      deep copy of this node