< prev index next >

src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/BlockTree.java

Print this page




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.nashorn.api.tree;
  27 
  28 import java.util.List;
  29 
  30 /**
  31  * A tree node for a statement block.
  32  *
  33  * For example:
  34  * <pre>
  35  *   { }
  36  *
  37  *   { <em>statements</em> }
  38  * </pre>
  39  *



  40  * @since 9
  41  */

  42 public interface BlockTree extends StatementTree {
  43     /**
  44      * Returns the list of statements in this block.
  45      *
  46      * @return the list of statements in this block
  47      */
  48     List<? extends StatementTree> getStatements();
  49 }


  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.nashorn.api.tree;
  27 
  28 import java.util.List;
  29 
  30 /**
  31  * A tree node for a statement block.
  32  *
  33  * For example:
  34  * <pre>
  35  *   { }
  36  *
  37  *   { <em>statements</em> }
  38  * </pre>
  39  *
  40  * @deprecated Nashorn JavaScript script engine and APIs, and the jjs tool
  41  * are deprecated with the intent to remove them in a future release.
  42  *
  43  * @since 9
  44  */
  45 @Deprecated(since="11", forRemoval=true)
  46 public interface BlockTree extends StatementTree {
  47     /**
  48      * Returns the list of statements in this block.
  49      *
  50      * @return the list of statements in this block
  51      */
  52     List<? extends StatementTree> getStatements();
  53 }
< prev index next >