|
||||||||||
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.
Field Summary | |
PyObject |
__dict__
|
PyObject |
__displayhook__
|
PyObject |
__excepthook__
|
PyObject |
__stderr__
|
PyObject |
__stdin__
|
PyObject |
__stdout__
|
static boolean |
appletMode
|
PyList |
argv
The arguments passed to this program on the command line. |
static String[] |
builtin_module_names
|
PyObject |
builtins
|
static File |
cachedir
|
static String |
copyright
The copyright notice for this release. |
static String |
exec_prefix
|
PyObject |
executable
|
static int |
hexversion
|
PyObject |
last_traceback
|
PyObject |
last_type
|
PyObject |
last_value
|
static int |
maxint
|
static int |
minint
|
PyObject |
modules
|
static PackageManager |
packageManager
|
PyList |
path
|
static String |
platform
|
static String |
prefix
|
TraceFunction |
profilefunc
|
PyObject |
ps1
|
PyObject |
ps2
|
static Properties |
registry
|
PyObject |
stderr
|
PyObject |
stdin
|
PyObject |
stdout
|
TraceFunction |
tracefunc
|
static String |
version
The current version of JPython. |
static PyTuple |
version_info
|
static PyList |
warnoptions
|
Fields inherited from class org.python.core.PyObject |
__class__ |
Constructor Summary | |
PySystemState()
|
Method Summary | |
void |
__delattr__(String name)
A variant of the __delattr__ method which accepts a String as the key. |
PyObject |
__findattr__(String name)
A variant of the __findattr__ method which accepts a Java String as the name. |
void |
__setattr__(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(String directoryPath)
Add a classpath directory to the list of places that are searched for java packages. |
static void |
add_extdir(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(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(String n)
|
static PyJavaPackage |
add_package(String n,
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. |
ClassLoader |
getClassLoader()
|
String |
getdefaultencoding()
|
static void |
initialize()
|
static void |
initialize(Properties preProperties,
Properties postProperties,
String[] argv)
|
static void |
initialize(Properties preProperties,
Properties postProperties,
String[] argv,
ClassLoader classLoader)
|
static void |
initializeApplet()
|
String |
safeRepr()
|
void |
setClassLoader(ClassLoader classLoader)
|
void |
setdefaultencoding(String encoding)
|
void |
setprofile(PyObject profilefunc)
|
void |
settrace(PyObject tracefunc)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static String version
public static int hexversion
public static PyTuple version_info
public static String copyright
public PyList argv
public PyObject modules
public PyList path
public PyObject builtins
public static String platform
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 Properties registry
public static String prefix
public static String exec_prefix
public static boolean appletMode
public static PackageManager packageManager
public static File cachedir
public static 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
PySystemExit
- always throws this exception.
When caught at top level the program will exit.public static void exit()
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public static PyTuple exc_info()
public static PyFrame _getframe()
public static PyFrame _getframe(int depth)
public PyObject __findattr__(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__(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__(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 String safeRepr() throws PyIgnoreMethodTag
safeRepr
in class PyObject
PyIgnoreMethodTag
public String toString()
public static void initializeApplet()
public static void initialize()
public static void initialize(Properties preProperties, Properties postProperties, String[] argv)
public static void initialize(Properties preProperties, Properties postProperties, String[] argv, ClassLoader classLoader)
public static PyJavaPackage add_package(String n)
public static PyJavaPackage add_package(String n, String contents)
public static void add_classdir(String directoryPath)
Note. Classes found in directory and subdirectory are not
made available to jython by this call. It only make the java
package found ion 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(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(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 String getdefaultencoding()
public void setdefaultencoding(String encoding)
public void callExitFunc() throws PyIgnoreMethodTag
PyIgnoreMethodTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |