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 public interface FunctionExpressionTree extends ExpressionTree {
43 /**
44 * Returns the name of the function being declared.
45 *
46 * @return name the function declared
47 */
48 String getName();
49
50 /**
51 * Returns the parameters of this function.
52 *
53 * @return the list of parameters
54 */
55 List<? extends ExpressionTree> getParameters();
56
57 /**
58 * Returns the body of code of this function.
59 *
60 * @return the body of code
|
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 public interface FunctionExpressionTree extends ExpressionTree {
43 /**
44 * Returns the name of the function being declared.
45 *
46 * @return name the function declared
47 */
48 String getName();
49
50 /**
51 * Returns the parameters of this function.
52 *
53 * @return the list of parameters
54 */
55 List<? extends ExpressionTree> getParameters();
56
57 /**
58 * Returns the body of code of this function.
59 *
60 * @return the body of code
|