KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > python > modules > Setup


1 // Copyright (c) Corporation for National Research Initiatives
2
package org.python.modules;
3
4 // This is sort of analogous to CPython's Modules/Setup file. Use this to
5
// specify additional builtin modules.
6

7 public class Setup
8 {
9     // Each element of this array is a string naming a builtin module to
10
// add to the system. The string has the following allowable forms:
11
//
12
// name
13
// The module name is `name' and the class name is
14
// org.python.modules.name
15
//
16
// name:class
17
// The module name is `name' and the class name is `class' where
18
// class must be a fully qualified Java class name
19
//
20
// name:null
21
// The module `name' is removed from the list of builtin modules
22
//
23
// That isn't very useful here, but you can add additional builtin
24
// modules by editing the JPython registry file. See the property
25
// python.modules.builtin for details.
26

27     public static String JavaDoc[] builtinModules = {
28         "jarray",
29         "math",
30         "thread",
31         "operator",
32         "time",
33         "os",
34         "types",
35         "py_compile",
36         "pre:org.python.modules.re",
37         "_sre",
38         "synchronize",
39         "cPickle",
40         "cStringIO",
41         "struct",
42         "binascii",
43         "md5:org.python.modules.MD5Module",
44         "exceptions:org.python.core.exceptions",
45         "_codecs",
46         "imp",
47         "sha",
48         "ucnhash",
49         "_jython",
50         "new:org.python.modules.newmodule",
51         "_weakref",
52         "xreadlines",
53         "errno",
54         "array:org.python.modules.ArrayModule",
55         "sets:org.python.modules.sets.Sets"
56     };
57 }
58
Popular Tags