1 package spoon.reflect.code;2 3 /**4 * This code element defines a <code>catch</code> of a <code>try</code>.5 * @see spoon.reflect.code.CtTry6 */7 public interface CtCatch extends CtCodeElement {8 9 /**10 * Gets the catch's parameter (a throwable).11 */12 CtLocalVariable<? extends Throwable > getParameter();13 14 /**15 * Sets the catch's parameter (a throwable).16 */17 void setParameter(CtLocalVariable<? extends Throwable > parameter);18 19 /**20 * Gets the catch's body.21 */22 CtBlock<?> getBody();23 24 /**25 * Sets the catch's body.26 */27 void setBody(CtBlock body);28 }29