[Jython-checkins] jython: ArgParser: clarify JavaDoc.
nicholas.riley
jython-checkins at python.org
Wed Mar 14 20:46:20 CET 2012
http://hg.python.org/jython/rev/b09d0cfc3de4
changeset: 6365:b09d0cfc3de4
user: Nicholas Riley <njriley at illinois.edu>
date: Wed Mar 14 15:30:48 2012 -0400
summary:
ArgParser: clarify JavaDoc.
files:
src/org/python/core/ArgParser.java | 36 +++++++++---------
1 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/src/org/python/core/ArgParser.java b/src/org/python/core/ArgParser.java
--- a/src/org/python/core/ArgParser.java
+++ b/src/org/python/core/ArgParser.java
@@ -1,14 +1,14 @@
package org.python.core;
+import org.python.antlr.AST;
+
import java.util.HashSet;
import java.util.Set;
-import org.python.antlr.AST;
-
/**
* A utility class for handling mixed positional and keyword arguments.
*
- * A typical usage:
+ * Typical usage:
*
* <pre>
* public MatchObject search(PyObject[] args, String[] kws) {
@@ -51,12 +51,12 @@
}
/**
- * Create an ArgParser with one method argument
+ * Create an ArgParser for a one-argument function.
*
- * @param funcname Name of the method. Used in error messages.
+ * @param funcname Name of the function. Used in error messages.
* @param args The actual call arguments supplied in the call.
* @param kws The actual keyword names supplied in the call.
- * @param p0 The expected argument in the method definition.
+ * @param p0 The expected argument in the function definition.
*/
public ArgParser(String funcname, PyObject[] args, String[] kws, String p0) {
this(funcname, args, kws);
@@ -65,13 +65,13 @@
}
/**
- * Create an ArgParser with two method argument
+ * Create an ArgParser for a two-argument function.
*
- * @param funcname Name of the method. Used in error messages.
+ * @param funcname Name of the function. Used in error messages.
* @param args The actual call arguments supplied in the call.
* @param kws The actual keyword names supplied in the call.
- * @param p0 The first expected argument in the method definition.
- * @param p1 The second expected argument in the method definition.
+ * @param p0 The first expected argument in the function definition.
+ * @param p1 The second expected argument in the function definition.
*/
public ArgParser(String funcname, PyObject[] args, String[] kws, String p0,
String p1) {
@@ -81,14 +81,14 @@
}
/**
- * Create an ArgParser with three method argument
+ * Create an ArgParser for a three-argument function.
*
- * @param funcname Name of the method. Used in error messages.
+ * @param funcname Name of the function. Used in error messages.
* @param args The actual call arguments supplied in the call.
* @param kws The actual keyword names supplied in the call.
- * @param p0 The first expected argument in the method definition.
- * @param p1 The second expected argument in the method definition.
- * @param p2 The third expected argument in the method definition.
+ * @param p0 The first expected argument in the function definition.
+ * @param p1 The second expected argument in the function definition.
+ * @param p2 The third expected argument in the function definition.
*/
public ArgParser(String funcname, PyObject[] args, String[] kws, String p0,
String p1, String p2) {
@@ -98,12 +98,12 @@
}
/**
- * Create an ArgParser with three method argument
+ * Create an ArgParser for a multi-argument function.
*
- * @param funcname Name of the method. Used in error messages.
+ * @param funcname Name of the function. Used in error messages.
* @param args The actual call arguments supplied in the call.
* @param kws The actual keyword names supplied in the call.
- * @param paramnames The list of expected argument in the method definition.
+ * @param paramnames The list of expected argument in the function definition.
*/
public ArgParser(String funcname, PyObject[] args, String[] kws,
String[] paramnames) {
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list