nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/FunctionNode.java
equal
deleted
inserted
replaced
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 */ |