|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.python.core.PyObject
org.python.core.PySystemState
public class PySystemState
The "sys" module.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.python.core.PyObject |
---|
PyObject.ConversionException |
Fields inherited from class org.python.core.PyObject |
---|
TYPE |
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_ex__(java.lang.String name)
Attribute lookup hook. |
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 void |
determinePlatform(java.util.Properties props)
|
static void |
exc_clear()
|
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. |
static java.util.Properties |
getBaseProperties()
|
java.lang.ClassLoader |
getClassLoader()
|
java.lang.String |
getCurrentWorkingDir()
Return a string representing the current working directory. |
PyString |
getdefaultencoding()
|
PyObject |
getEnviron()
|
PyObject |
getfilesystemencoding()
|
java.lang.String |
getPath(java.lang.String path)
Resolve a path. |
static java.lang.String |
getPathLazy(java.lang.String path)
Resolve a path. |
int |
getrecursionlimit()
|
void |
initEnviron()
Initialize the environ dict from System.getenv. |
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)
|
static void |
initialize(java.util.Properties preProperties,
java.util.Properties postProperties,
java.lang.String[] argv,
java.lang.ClassLoader classLoader,
org.python.core.adapter.ExtensiblePyObjectAdapter adapter)
|
static boolean |
isPackageCacheEnabled()
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
|
void |
setCurrentWorkingDir(java.lang.String path)
Change the current working directory to the specified path. |
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 final java.lang.String PYTHON_CACHEDIR
public static final java.lang.String PYTHON_CACHEDIR_SKIP
public static final java.lang.String JYTHON_JAR
public static PyString version
public static int hexversion
public static PyTuple version_info
public static final int maxunicode
public static PyTuple subversion
public static java.lang.String copyright
public static PyTuple builtin_module_names
public static org.python.core.packagecache.PackageManager packageManager
public static java.io.File cachedir
public static java.util.Properties registry
public static java.lang.String prefix
public static java.lang.String exec_prefix
public PyList argv
public PyObject modules
public PyList path
public static PyObject builtins
public PyList meta_path
public PyList path_hooks
public PyObject path_importer_cache
public static PyString platform
public static PyString 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 __name__
public PyObject __dict__
Constructor Detail |
---|
public PySystemState()
Method Detail |
---|
public PyObject __findattr_ex__(java.lang.String name)
PyObject
PyObject.__getattr__(String)
or
PyObject.__findattr__(String)
. Both methods have a clear policy for
failed lookups.
__findattr_ex__
in class PyObject
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 toString()
toString
in class PyObject
public int getrecursionlimit()
public void setrecursionlimit(int recursionlimit)
public void settrace(PyObject tracefunc)
public void setprofile(PyObject profilefunc)
public PyString getdefaultencoding()
public void setdefaultencoding(java.lang.String encoding)
public PyObject getfilesystemencoding()
public void initEnviron()
public PyObject getEnviron()
public void setCurrentWorkingDir(java.lang.String path)
path
- a path Stringpublic java.lang.String getCurrentWorkingDir()
public java.lang.String getPath(java.lang.String path)
path
- a path String
public void callExitFunc() throws PyIgnoreMethodTag
PyIgnoreMethodTag
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
public static void determinePlatform(java.util.Properties props)
public static java.util.Properties getBaseProperties()
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 void initialize(java.util.Properties preProperties, java.util.Properties postProperties, java.lang.String[] argv, java.lang.ClassLoader classLoader, org.python.core.adapter.ExtensiblePyObjectAdapter adapter)
public static boolean isPackageCacheEnabled()
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 static java.lang.String getPathLazy(java.lang.String path)
path
- a path String
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 static PyTuple exc_info()
public static void exc_clear()
public static PyFrame _getframe()
public static PyFrame _getframe(int depth)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |