nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/FunctionNode.java
changeset 32434 769b3d81ae69
parent 28130 433d6755c5f8
child 32435 cfd619ef23a6
equal deleted inserted replaced
32341:3c9f5bd909ae 32434:769b3d81ae69
  1024     public List<IdentNode> getParameters() {
  1024     public List<IdentNode> getParameters() {
  1025         return Collections.unmodifiableList(parameters);
  1025         return Collections.unmodifiableList(parameters);
  1026     }
  1026     }
  1027 
  1027 
  1028     /**
  1028     /**
       
  1029      * Return the number of parameters to this function
       
  1030      * @return the number of parameters
       
  1031      */
       
  1032     public int getNumOfParams() {
       
  1033         return parameters.size();
       
  1034     }
       
  1035 
       
  1036     /**
  1029      * Returns the identifier for a named parameter at the specified position in this function's parameter list.
  1037      * Returns the identifier for a named parameter at the specified position in this function's parameter list.
  1030      * @param index the parameter's position.
  1038      * @param index the parameter's position.
  1031      * @return the identifier for the requested named parameter.
  1039      * @return the identifier for the requested named parameter.
  1032      * @throws IndexOutOfBoundsException if the index is invalid.
  1040      * @throws IndexOutOfBoundsException if the index is invalid.
  1033      */
  1041      */