< prev index next >

nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/FunctionCallTree.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 call expression.
  32  *
  33  * For example:
  34  * <pre>
  35  *   <em>identifier</em> ( <em>arguments</em> )
  36  *
  37  *   this . <em>identifier</em> ( <em>arguments</em> )
  38  * </pre>
  39  *
  40  * @since 1.9
  41  */
  42 @jdk.Exported
  43 public interface FunctionCallTree extends ExpressionTree {
  44     /**
  45      * Returns the function being called.
  46      *
  47      * @return the function being called
  48      */
  49     ExpressionTree getFunctionSelect();
  50 
  51     /**
  52      * Returns the list of arguments being passed to this function call.
  53      *
  54      * @return the list of argument expressions
  55      */
  56     List<? extends ExpressionTree> getArguments();
  57 }


  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 call expression.
  32  *
  33  * For example:
  34  * <pre>
  35  *   <em>identifier</em> ( <em>arguments</em> )
  36  *
  37  *   this . <em>identifier</em> ( <em>arguments</em> )
  38  * </pre>
  39  *
  40  * @since 9
  41  */
  42 @jdk.Exported
  43 public interface FunctionCallTree extends ExpressionTree {
  44     /**
  45      * Returns the function being called.
  46      *
  47      * @return the function being called
  48      */
  49     ExpressionTree getFunctionSelect();
  50 
  51     /**
  52      * Returns the list of arguments being passed to this function call.
  53      *
  54      * @return the list of argument expressions
  55      */
  56     List<? extends ExpressionTree> getArguments();
  57 }
< prev index next >