1 package polyglot.ast; 2 3 /** 4 * A <code>Throw</code> is an immutable representation of a <code>throw</code> 5 * statement. Such a statement contains a single <code>Expr</code> which 6 * evaluates to the object being thrown. 7 */ 8 public interface Throw extends Stmt 9 { 10 /* The expression to throw. */ 11 Expr expr(); 12 13 /* Set the expression to throw. */ 14 Throw expr(Expr expr); 15 } 16