1 package polyglot.ast; 2 3 /** 4 * An <code>ArrayAccess</code> is an immutable representation of an 5 * access of an array member. 6 */ 7 public interface ArrayAccess extends Variable 8 { 9 /** 10 * Array to access. 11 */ 12 Expr array(); 13 14 /** 15 * Set the array to access. 16 */ 17 ArrayAccess array(Expr array); 18 19 /** 20 * Index into the array. 21 */ 22 Expr index(); 23 24 /** 25 * Set the index into the array. 26 */ 27 ArrayAccess index(Expr index); 28 } 29