src/share/classes/com/sun/source/tree/TryTree.java

Print this page




  32  *
  33  * For example:
  34  * <pre>
  35  *   try
  36  *       <em>block</em>
  37  *   <em>catches</em>
  38  *   finally
  39  *       <em>finallyBlock</em>
  40  * </pre>
  41  *
  42  * @see "The Java Language Specification, 3rd ed, section 14.20"
  43  *
  44  * @author Peter von der Ah&eacute;
  45  * @author Jonathan Gibbons
  46  * @since 1.6
  47  */
  48 public interface TryTree extends StatementTree {
  49     BlockTree getBlock();
  50     List<? extends CatchTree> getCatches();
  51     BlockTree getFinallyBlock();

  52 }


  32  *
  33  * For example:
  34  * <pre>
  35  *   try
  36  *       <em>block</em>
  37  *   <em>catches</em>
  38  *   finally
  39  *       <em>finallyBlock</em>
  40  * </pre>
  41  *
  42  * @see "The Java Language Specification, 3rd ed, section 14.20"
  43  *
  44  * @author Peter von der Ah&eacute;
  45  * @author Jonathan Gibbons
  46  * @since 1.6
  47  */
  48 public interface TryTree extends StatementTree {
  49     BlockTree getBlock();
  50     List<? extends CatchTree> getCatches();
  51     BlockTree getFinallyBlock();
  52     List<? extends Tree> getResources();
  53 }