< prev index next >

nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/FunctionExpressionTree.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 function expression.
  32  *
  33  * For example:
  34  * <pre>
  35  *   <em>var</em> func = <em>function</em>
  36  *      ( <em>parameters</em> )
  37  *      <em>body</em>
  38  * </pre>
  39  *
  40  * @since 1.9
  41  */
  42 @jdk.Exported
  43 public interface FunctionExpressionTree extends ExpressionTree {
  44     /**
  45      * Returns the name of the function being declared.
  46      *
  47      * @return name the function declared
  48      */
  49     String getName();
  50 
  51     /**
  52      * Returns the parameters of this function.
  53      *
  54      * @return the list of parameters
  55      */
  56     List<? extends ExpressionTree> getParameters();
  57 
  58     /**
  59      * Returns the body of code of this function.
  60      *


  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 function expression.
  32  *
  33  * For example:
  34  * <pre>
  35  *   <em>var</em> func = <em>function</em>
  36  *      ( <em>parameters</em> )
  37  *      <em>body</em>
  38  * </pre>
  39  *
  40  * @since 9
  41  */
  42 @jdk.Exported
  43 public interface FunctionExpressionTree extends ExpressionTree {
  44     /**
  45      * Returns the name of the function being declared.
  46      *
  47      * @return name the function declared
  48      */
  49     String getName();
  50 
  51     /**
  52      * Returns the parameters of this function.
  53      *
  54      * @return the list of parameters
  55      */
  56     List<? extends ExpressionTree> getParameters();
  57 
  58     /**
  59      * Returns the body of code of this function.
  60      *
< prev index next >