| java.lang.Object org.python.core.Py
Py | final public class Py (Code) | | |
Inner Class :static class SingletonResolver implements Serializable | |
Method Summary | |
public static PyException | AssertionError(String message) | public static PyException | AttributeError(String message) | public static void | DeprecationWarning(String message) | public static PyException | EOFError(String message) | public static PyException | FloatingPointError(String message) | public static PyException | IOError(java.io.IOException ioe) | public static PyException | IOError(String message) | public static PyException | ImportError(String message) | public static PyException | IndexError(String message) | public static PyException | JavaError(Throwable t) | public static PyException | KeyError(String message) | public static PyException | MemoryError(String message) | public static PyException | NameError(String message) | public static PyException | OverflowError(String message) | public static void | OverflowWarning(String message) | public static PyException | ReferenceError(String message) | public static PyException | RuntimeError(String message) | public static void | RuntimeWarning(String message) | public static PyException | StopIteration(String message) | public static PyException | SyntaxError(String message) | public static void | SyntaxWarning(String message) | public static PyException | SystemError(String message) | public static PyException | TypeError(String message) | public static PyException | UnboundLocalError(String message) | public static PyException | UnicodeError(String message) | public static void | UserWarning(String message) | public static PyException | ValueError(String message) | public static void | Warning(String message) | public static PyException | ZeroDivisionError(String message) | public static void | addTraceback(Throwable t, PyFrame frame) | public static void | assert_(PyObject test, PyObject message) | public static void | assert_(PyObject test) | public static PyCode | compile(modType node, String filename) | public static PyCode | compile(modType node, String name, String filename) | public static PyCode | compile(modType node, String name, String filename, boolean linenumbers, boolean printResults) | public static PyCode | compile(InputStream istream, String filename, String type) | public static PyObject | compile_command_flags(String string, String filename, String kind, CompilerFlags cflags, boolean stdprompt) | public static PyCode | compile_flags(modType node, String name, String filename, boolean linenumbers, boolean printResults, CompilerFlags cflags) | public static PyCode | compile_flags(InputStream istream, String filename, String type, CompilerFlags cflags) | public static PyCode | compile_flags(String data, String filename, String type, CompilerFlags cflags) | public static void | displayException(PyObject type, PyObject value, PyObject tb, PyObject file) | public static void | exec(PyObject o, PyObject globals, PyObject locals) | public static Class | findClass(String name) | public static Class | findClassEx(String name, String reason) | static String | formatException(PyObject type, PyObject value, PyObject tb) | public static ExtensiblePyObjectAdapter | getAdapter() | public static CompilerFlags | getCompilerFlags() | public static CompilerFlags | getCompilerFlags(int flags, boolean dont_inherit) | public static PyFrame | getFrame() | public static synchronized String | getName() | final public static PySystemState | getSystemState() | final public static ThreadState | getThreadState() | final public static ThreadState | getThreadState(PySystemState newSystemState) | public static long | id(PyObject o) | public static String | idstr(PyObject o) | static void | initClassExceptions(PyObject dict) | public static void | initProxy(PyProxy proxy, String module, String pyclass, Object[] args, String[] packages, String[] props, boolean frozen) | public static void | initProxy(PyProxy proxy, String module, String pyclass, Object[] args, String[] packages, String[] props, String frozenPackage, String[] modules) | public static synchronized boolean | initPython() | public static void | initRunnable(String module, PyObject dict) | public static boolean | isInstance(PyObject obj, PyObject cls) | public static boolean | isSubClass(PyObject derived, PyObject cls) | public static PyObject | iter(PyObject seq, String message) | public static PyObject | java2py(Object o) Uses the PyObjectAdapter passed to
PySystemState.initialize to turn o into a PyObject. | public static long | java_obj_id(Object o) | public static PyObject | jfindattr(PyProxy proxy, String name) | public static PyObject | jgetattr(PyProxy proxy, String name) | final public static PyString | makeCharacter(Character o) | final static PyString | makeCharacter(char c) | final static PyString | makeCharacter(char c, boolean explicitUnicode) | public static PyObject | makeClass(String name, PyObject[] bases, PyCode code, PyObject doc) | public static PyObject | makeClass(String name, PyObject[] bases, PyCode code, PyObject doc, PyObject[] closure_cells) | public static PyObject | makeClass(String name, PyObject[] bases, PyCode code, PyObject doc, Class proxyClass) | public static PyObject | makeClass(String name, PyObject[] bases, PyCode code, PyObject doc, Class proxyClass, PyObject[] closure_cells) | public static PyException | makeException() | public static PyException | makeException(PyObject type) | public static PyException | makeException(PyObject type, PyObject value) | public static PyException | makeException(PyObject type, PyObject value, PyObject traceback) | static PyObject[] | make_array(PyObject o) | public static boolean | matchException(PyException pye, PyObject e) | static void | maybeSystemExit(PyException exc) | public static void | maybeWrite(String type, String msg, int level) | public static void | memory_error(OutOfMemoryError t) | public static PyInteger | newBoolean(boolean t) | public static PyCode | newCode(int argcount, String varnames, String filename, String name, boolean args, boolean keywords, PyFunctionTable funcs, int func_id, String[] cellvars, String[] freevars, int npurecell, int moreflags) | public static PyCode | newCode(int argcount, String varnames, String filename, String name, int firstlineno, boolean args, boolean keywords, PyFunctionTable funcs, int func_id, String[] cellvars, String[] freevars, int npurecell, int moreflags) | public static PyCode | newCode(int argcount, String varnames, String filename, String name, boolean args, boolean keywords, PyFunctionTable funcs, int func_id) | public static PyCode | newCode(int argcount, String varnames, String filename, String name, int firstlineno, boolean args, boolean keywords, PyFunctionTable funcs, int func_id) | public static PyFloat | newFloat(float v) | public static PyFloat | newFloat(double v) | public static PyComplex | newImaginary(double v) | final public static PyInteger | newInteger(int i) | public static PyObject | newInteger(long i) | public static PyCode | newJavaCode(Class cls, String name) | public static PyObject | newJavaFunc(Class cls, String name) | public static PyLong | newLong(String s) | public static PyLong | newLong(java.math.BigInteger i) | public static PyLong | newLong(int i) | public static PyString | newString(char c) | public static PyString | newString(String s) | public static PyUnicode | newUnicode(char c) | public static PyUnicode | newUnicode(String s) | public static void | print(PyObject file, PyObject o) | public static void | print(PyObject o) | public static void | printComma(PyObject file, PyObject o) | public static void | printComma(PyObject o) | public static void | printException(Throwable t) | public static void | printException(Throwable t, PyFrame f) | public static synchronized void | printException(Throwable t, PyFrame f, PyObject file) | public static void | printResult(PyObject ret) | public static void | println(PyObject file, PyObject o) | public static void | println(PyObject o) | public static void | println() | public static void | printlnv(PyObject file) | public static boolean | py2boolean(PyObject o) | public static byte | py2byte(PyObject o) | public static char | py2char(PyObject o) | public static char | py2char(PyObject o, String msg) | public static double | py2double(PyObject o) | public static float | py2float(PyObject o) | public static int | py2int(PyObject o) | public static int | py2int(PyObject o, String msg) | public static long | py2long(PyObject o) | public static short | py2short(PyObject o) | public static void | py2void(PyObject o) | public static Class | relFindClass(Class home, String name) | public static PyObject | runCode(PyCode code, PyObject locals, PyObject globals) | public static void | runMain(PyRunnable main, String[] args) | public static void | runMain(Class mainClass, String[] args, String[] packages, String[] props, String frozenPackage, String[] modules) | public static String | safeRepr(PyObject o) | public static void | saveClassFile(String name, ByteArrayOutputStream bytestream) | protected static void | setAdapter(ExtensiblePyObjectAdapter adapter) Set the ExtensiblePyObjectAdapter used by java2py. | public static PyException | setException(Throwable t, PyFrame frame) | public static void | setFrame(PyFrame f) | final public static PySystemState | setSystemState(PySystemState newSystemState) | public static Object | tojava(PyObject o, Class c) Convert a given PyObject to an instance of a Java class. | public static Object | tojava(PyObject o, String s) | public static PyObject[] | unpackSequence(PyObject o, int length) | public static void | warning(PyObject category, String message) | public static void | warning(PyObject category, String message, String filename, int lineno, String module, PyObject registry) | public static void | writeComment(String type, String msg) | public static void | writeDebug(String type, String msg) | public static void | writeError(String type, String msg) | public static void | writeMessage(String type, String msg) | public static void | writeWarning(String type, String msg) |
COMMENT | final public static int COMMENT(Code) | | |
DEBUG | final public static int DEBUG(Code) | | |
ERROR | final public static int ERROR(Code) | | |
Ellipsis | public static PyObject Ellipsis(Code) | | The singleton Ellipsis Python object - written as ... when indexing
|
EmptyObjects | public static PyObject[] EmptyObjects(Code) | | A zero-length array of PyObject's to pass to functions that
expect zero-arguments *
|
EmptyString | public static PyString EmptyString(Code) | | A zero-length Python string *
|
EmptyTuple | public static PyTuple EmptyTuple(Code) | | A tuple with zero elements *
|
MESSAGE | final public static int MESSAGE(Code) | | |
Newline | public static PyString Newline(Code) | | A Python string containing '\n' *
|
NoConversion | public static Object NoConversion(Code) | | A unique object to indicate no conversion is possible
in __tojava__ methods *
|
NoKeywords | public static String[] NoKeywords(Code) | | A zero-length array of Strings to pass to functions that
don't have any keyword arguments *
|
None | public static PyObject None(Code) | | The singleton None Python object *
|
NotImplemented | public static PyObject NotImplemented(Code) | | The singleton NotImplemented Python object. Used in rich comparison
|
One | public static PyInteger One(Code) | | The Python integer 1 - also used as true *
|
Space | public static PyString Space(Code) | | A Python string containing ' ' *
|
WARNING | final public static int WARNING(Code) | | |
Zero | public static PyInteger Zero(Code) | | The Python integer 0 - also used as false *
|
frozen | static boolean frozen(Code) | | |
initialized | static boolean initialized(Code) | | |
DeprecationWarning | public static void DeprecationWarning(String message)(Code) | | |
OverflowWarning | public static void OverflowWarning(String message)(Code) | | |
RuntimeWarning | public static void RuntimeWarning(String message)(Code) | | |
SyntaxWarning | public static void SyntaxWarning(String message)(Code) | | |
UserWarning | public static void UserWarning(String message)(Code) | | |
getCompilerFlags | public static CompilerFlags getCompilerFlags(int flags, boolean dont_inherit)(Code) | | |
initClassExceptions | static void initClassExceptions(PyObject dict)(Code) | | |
initPython | public static synchronized boolean initPython()(Code) | | |
makeCharacter | final static PyString makeCharacter(char c, boolean explicitUnicode)(Code) | | |
newCode | public static PyCode newCode(int argcount, String varnames, String filename, String name, boolean args, boolean keywords, PyFunctionTable funcs, int func_id, String[] cellvars, String[] freevars, int npurecell, int moreflags)(Code) | | |
newCode | public static PyCode newCode(int argcount, String varnames, String filename, String name, int firstlineno, boolean args, boolean keywords, PyFunctionTable funcs, int func_id, String[] cellvars, String[] freevars, int npurecell, int moreflags)(Code) | | |
println | public static void println()(Code) | | |
setAdapter | protected static void setAdapter(ExtensiblePyObjectAdapter adapter)(Code) | | Set the ExtensiblePyObjectAdapter used by java2py.
Parameters: adapter - The new ExtensiblePyObjectAdapter |
tojava | public static Object tojava(PyObject o, Class c)(Code) | | Convert a given PyObject to an instance of a Java class.
Identical to o.__tojava__(c) except that it will
raise a TypeError if the conversion fails.
Parameters: o - the PyObject to convert. Parameters: c - the class to convert it to. |
|
|