From: Finn B. <bc...@us...> - 2001-02-25 16:51:43
|
Update of /cvsroot/jython/jython/org/python/core In directory usw-pr-cvs1:/tmp/cvs-serv1773 Modified Files: parser.java imp.java exceptions.java Log Message: Added javadoc comments. Added a provate ctor to indicate that these are static classes. Index: parser.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/parser.java,v retrieving revision 2.7 retrieving revision 2.8 diff -C2 -r2.7 -r2.8 *** parser.java 2001/02/02 09:28:37 2.7 --- parser.java 2001/02/25 16:52:54 2.8 *************** *** 5,10 **** import java.io.*; public class parser { ! public static String getLine(BufferedReader reader, int line) { if (reader == null) return ""; --- 5,17 ---- import java.io.*; + /** + * Facade for the classes in the org.python.parser package. + */ + public class parser { ! ! private parser() { ; } ! ! static String getLine(BufferedReader reader, int line) { if (reader == null) return ""; Index: imp.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/imp.java,v retrieving revision 2.39 retrieving revision 2.40 diff -C2 -r2.39 -r2.40 *** imp.java 2001/02/14 22:32:22 2.39 --- imp.java 2001/02/25 16:52:54 2.40 *************** *** 7,13 **** --- 7,18 ---- import java.util.Properties; + /** + * Utility functions for "import" support. + */ public class imp { public static final int APIVersion = 8; + + private imp() { ; } public static PyModule addModule(String name) { Index: exceptions.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/exceptions.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** exceptions.java 2001/02/22 13:01:52 1.5 --- exceptions.java 2001/02/25 16:52:54 1.6 *************** *** 4,8 **** import java.lang.reflect.*; ! public class exceptions implements ClassDictInit { --- 4,14 ---- import java.lang.reflect.*; ! ! /** ! * The builtin exceptions module. The entire module should be imported ! * from python. None of the methods defined here should be called ! * from java. ! */ ! public class exceptions implements ClassDictInit { *************** *** 72,75 **** --- 78,82 ---- " +-- RuntimeWarning"; + private exceptions() { ; } public static void classDictInit(PyObject dict) { |