|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.python.core.PyObject org.python.core.PySystemState
The "sys" module.
Nested Class Summary |
Nested classes inherited from class org.python.core.PyObject |
PyObject.ConversionException |
Fields inherited from class org.python.core.PyObject |
exposed_name |
Constructor Summary | |
PySystemState()
|
Method Summary | |
void |
__delattr__(java.lang.String name)
A variant of the __delattr__ method which accepts a String as the key. |
PyObject |
__findattr__(java.lang.String name)
A variant of the __findattr__ method which accepts a Java String as the name.
|
void |
__rawdir__(PyDictionary accum)
|
void |
__setattr__(java.lang.String name,
PyObject value)
A variant of the __setattr__ method which accepts a String as the key. |
static PyFrame |
_getframe()
|
static PyFrame |
_getframe(int depth)
|
static void |
add_classdir(java.lang.String directoryPath)
Add a classpath directory to the list of places that are searched for java packages. |
static void |
add_extdir(java.lang.String directoryPath)
Add a .jar & .zip directory to the list of places that are searched for java .jar and .zip files. |
static void |
add_extdir(java.lang.String directoryPath,
boolean cache)
Add a .jar & .zip directory to the list of places that are searched for java .jar and .zip files. |
static PyJavaPackage |
add_package(java.lang.String n)
|
static PyJavaPackage |
add_package(java.lang.String n,
java.lang.String contents)
|
void |
callExitFunc()
|
static PyTuple |
exc_info()
|
static void |
exit()
Exit a Python program with the status 0. |
static void |
exit(PyObject status)
Exit a Python program with the given status. |
java.lang.ClassLoader |
getClassLoader()
|
java.lang.String |
getdefaultencoding()
|
int |
getrecursionlimit()
|
static void |
initialize()
|
static void |
initialize(java.util.Properties preProperties,
java.util.Properties postProperties,
java.lang.String[] argv)
|
static void |
initialize(java.util.Properties preProperties,
java.util.Properties postProperties,
java.lang.String[] argv,
java.lang.ClassLoader classLoader)
|
java.lang.String |
safeRepr()
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
|
void |
setdefaultencoding(java.lang.String encoding)
|
void |
setprofile(PyObject profilefunc)
|
void |
setrecursionlimit(int recursionlimit)
|
void |
settrace(PyObject tracefunc)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static java.lang.String version
public static int hexversion
public static PyTuple version_info
public static int maxunicode
public static java.lang.String copyright
public PyList argv
public PyObject modules
public PyList path
public PyObject builtins
public PyList meta_path
public PyList path_hooks
public PyObject path_importer_cache
public static java.lang.String platform
public static java.lang.String byteorder
public PyObject ps1
public PyObject ps2
public static int maxint
public static int minint
public PyObject executable
public static PyList warnoptions
public PyObject stdout
public PyObject stderr
public PyObject stdin
public PyObject __stdout__
public PyObject __stderr__
public PyObject __stdin__
public PyObject __displayhook__
public PyObject __excepthook__
public PyObject last_value
public PyObject last_type
public PyObject last_traceback
public PyObject __dict__
public static java.util.Properties registry
public static java.lang.String prefix
public static java.lang.String exec_prefix
public static PackageManager packageManager
public static java.io.File cachedir
public static java.lang.String[] builtin_module_names
public TraceFunction tracefunc
public TraceFunction profilefunc
Constructor Detail |
public PySystemState()
Method Detail |
public static void exit(PyObject status)
status
- the value to exit with
Py.SystemExit
- always throws this exception.
When caught at top level the program will exit.public static void exit()
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
public static PyTuple exc_info()
public static PyFrame _getframe()
public static PyFrame _getframe(int depth)
public PyObject __findattr__(java.lang.String name)
PyObject
String
as the name.
By default, this method will call __findattr__(PyString
name)
with the appropriate args. The only reason to override
this method is for performance.
Warning: name must be an interned string!!!!!!!!
__findattr__
in class PyObject
name
- the name to lookup in this namespace
must be an interned string .
PyObject.__findattr__(PyString)
public void __setattr__(java.lang.String name, PyObject value)
PyObject
__setattr__
in class PyObject
name
- the name whose value will be set -
must be an interned string .value
- the value to set this name toPyObject.__setattr__(PyString, PyObject)
public void __delattr__(java.lang.String name)
PyObject
__delattr__(PyString name)
with the appropriate args.
The only reason to override this method is for performance.
__delattr__
in class PyObject
name
- the name which will be removed -
must be an interned string .PyObject.__delattr__(PyString)
public void __rawdir__(PyDictionary accum)
public java.lang.String safeRepr() throws PyIgnoreMethodTag
safeRepr
in class PyObject
PyIgnoreMethodTag
public java.lang.String toString()
toString
in class PyObject
public int getrecursionlimit()
public void setrecursionlimit(int recursionlimit)
public static void initialize()
public static void initialize(java.util.Properties preProperties, java.util.Properties postProperties, java.lang.String[] argv)
public static void initialize(java.util.Properties preProperties, java.util.Properties postProperties, java.lang.String[] argv, java.lang.ClassLoader classLoader)
public static PyJavaPackage add_package(java.lang.String n)
public static PyJavaPackage add_package(java.lang.String n, java.lang.String contents)
public static void add_classdir(java.lang.String directoryPath)
Note. Classes found in directory and subdirectory are not
made available to jython by this call. It only makes the java
package found in the directory available. This call is mostly
usefull if jython is embedded in an application that deals with
its own classloaders. A servlet container is a very good example.
Calling add_classdir("
public static void add_extdir(java.lang.String directoryPath)
Note. Classes in .jar and .zip files found in the directory are not made available to jython by this call. See the note for add_classdir(dir) for more details.
directoryPath
- The name of a directory.add_classdir(java.lang.String)
public static void add_extdir(java.lang.String directoryPath, boolean cache)
Note. Classes in .jar and .zip files found in the directory are not made available to jython by this call. See the note for add_classdir(dir) for more details.
directoryPath
- The name of a directory.cache
- Controls if the packages in the zip and jar
file should be cached.add_classdir(java.lang.String)
public void settrace(PyObject tracefunc)
public void setprofile(PyObject profilefunc)
public java.lang.String getdefaultencoding()
public void setdefaultencoding(java.lang.String encoding)
public void callExitFunc() throws PyIgnoreMethodTag
PyIgnoreMethodTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |