|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.python.core.Py
Field Summary | |
static PyObject |
ArithmeticError
|
static PyObject |
AssertionError
|
static PyObject |
AttributeError
|
static int |
COMMENT
|
static int |
DEBUG
|
static PySystemState |
defaultSystemState
|
static PyObject |
DeprecationWarning
|
static PyObject |
Ellipsis
The singleton Ellipsis Python object - written as ... when indexing |
static PyObject[] |
EmptyObjects
A zero-length array of PyObject's to pass to functions that expect zero-arguments |
static PyString |
EmptyString
A zero-length Python string |
static PyTuple |
EmptyTuple
A tuple with zero elements |
static PyObject |
EnvironmentError
|
static PyObject |
EOFError
|
static int |
ERROR
|
static PyObject |
Exception
|
static PyObject |
FloatingPointError
|
static PyObject |
ImportError
|
static PyObject |
IndentationError
|
static PyObject |
IndexError
|
static PyObject |
IOError
|
static PyObject |
JavaError
|
static PyObject |
KeyboardInterrupt
|
static PyObject |
KeyError
|
static PyObject |
LookupError
|
static PyObject |
MemoryError
|
static int |
MESSAGE
|
static PyObject |
NameError
|
static PyString |
Newline
A Python string containing '\n' |
static java.lang.Object |
NoConversion
A unique object to indicate no conversion is possible in __tojava__ methods |
static java.lang.String[] |
NoKeywords
A zero-length array of Strings to pass to functions that don't have any keyword arguments |
static PyObject |
None
The singleton None Python object |
static PyObject |
NotImplemented
The singleton NotImplemented Python object. |
static PyObject |
NotImplementedError
|
static PyInteger |
One
The Python integer 1 - also used as true |
static PyObject |
OSError
|
static PyObject |
OverflowError
|
static PyObject |
OverflowWarning
|
static PyObject |
ReferenceError
|
static PyObject |
RuntimeError
|
static PyObject |
RuntimeWarning
|
static PyString |
Space
A Python string containing ' ' |
static PyObject |
StandardError
|
static StdoutWrapper |
stderr
|
static PyObject |
StopIteration
|
static PyObject |
SyntaxError
|
static PyObject |
SyntaxWarning
|
static PyObject |
SystemError
|
static PyObject |
SystemExit
|
static PyObject |
TabError
|
static PyObject |
TypeError
|
static PyObject |
UnboundLocalError
|
static PyObject |
UnicodeError
|
static PyObject |
UserWarning
|
static PyObject |
ValueError
|
static PyObject |
Warning
|
static int |
WARNING
|
static PyInteger |
Zero
The Python integer 0 - also used as false |
static PyObject |
ZeroDivisionError
|
Method Summary | |
static void |
addTraceback(java.lang.Throwable t,
PyFrame frame)
|
static void |
assert_(PyObject test)
|
static void |
assert_(PyObject test,
PyObject message)
|
static PyException |
AssertionError(java.lang.String message)
|
static PyException |
AttributeError(java.lang.String message)
|
static PyObject |
compile_command_flags(java.lang.String string,
java.lang.String filename,
java.lang.String kind,
CompilerFlags cflags,
boolean stdprompt)
|
static PyCode |
compile_flags(java.io.InputStream istream,
java.lang.String filename,
java.lang.String type,
CompilerFlags cflags)
|
static PyCode |
compile_flags(org.python.parser.ast.modType node,
java.lang.String name,
java.lang.String filename,
boolean linenumbers,
boolean printResults,
CompilerFlags cflags)
|
static PyCode |
compile_flags(java.lang.String data,
java.lang.String filename,
java.lang.String type,
CompilerFlags cflags)
|
static PyCode |
compile(java.io.InputStream istream,
java.lang.String filename,
java.lang.String type)
|
static PyCode |
compile(org.python.parser.ast.modType node,
java.lang.String filename)
|
static PyCode |
compile(org.python.parser.ast.modType node,
java.lang.String name,
java.lang.String filename)
|
static PyCode |
compile(org.python.parser.ast.modType node,
java.lang.String name,
java.lang.String filename,
boolean linenumbers,
boolean printResults)
|
static void |
DeprecationWarning(java.lang.String message)
|
static void |
displayException(PyObject type,
PyObject value,
PyObject tb,
PyObject file)
|
static PyException |
EOFError(java.lang.String message)
|
static void |
exec(PyObject o,
PyObject globals,
PyObject locals)
|
static java.lang.Class |
findClass(java.lang.String name)
|
static java.lang.Class |
findClassEx(java.lang.String name,
java.lang.String reason)
|
static PyException |
FloatingPointError(java.lang.String message)
|
static CompilerFlags |
getCompilerFlags()
|
static CompilerFlags |
getCompilerFlags(int flags,
boolean dont_inherit)
|
static PyFrame |
getFrame()
|
static java.lang.String |
getName()
|
static PySystemState |
getSystemState()
|
static ThreadState |
getThreadState()
|
static ThreadState |
getThreadState(PySystemState newSystemState)
|
static long |
id(PyObject o)
|
static java.lang.String |
idstr(PyObject o)
|
static PyException |
ImportError(java.lang.String message)
|
static PyException |
IndexError(java.lang.String message)
|
static void |
initProxy(PyProxy proxy,
java.lang.String module,
java.lang.String pyclass,
java.lang.Object[] args,
java.lang.String[] packages,
java.lang.String[] props,
boolean frozen)
|
static void |
initProxy(PyProxy proxy,
java.lang.String module,
java.lang.String pyclass,
java.lang.Object[] args,
java.lang.String[] packages,
java.lang.String[] props,
java.lang.String frozenPackage,
java.lang.String[] modules)
|
static boolean |
initPython()
|
static void |
initRunnable(java.lang.String module,
PyObject dict)
|
static PyException |
IOError(java.io.IOException ioe)
|
static PyException |
IOError(java.lang.String message)
|
static boolean |
isInstance(PyObject obj,
PyObject cls)
|
static boolean |
isSubClass(PyObject derived,
PyObject cls)
|
static PyObject |
iter(PyObject seq,
java.lang.String message)
|
static long |
java_obj_id(java.lang.Object o)
|
static PyObject |
java2py(java.lang.Object o)
|
static PyException |
JavaError(java.lang.Throwable t)
|
static PyObject |
jfindattr(PyProxy proxy,
java.lang.String name)
Deprecated. |
static PyObject |
jgetattr(PyProxy proxy,
java.lang.String name)
Deprecated. |
static PyException |
KeyError(java.lang.String message)
|
static PyObject |
makeClass(java.lang.String name,
PyObject[] bases,
PyCode code,
PyObject doc)
|
static PyObject |
makeClass(java.lang.String name,
PyObject[] bases,
PyCode code,
PyObject doc,
java.lang.Class proxyClass)
|
static PyObject |
makeClass(java.lang.String name,
PyObject[] bases,
PyCode code,
PyObject doc,
java.lang.Class proxyClass,
PyObject[] closure_cells)
|
static PyObject |
makeClass(java.lang.String name,
PyObject[] bases,
PyCode code,
PyObject doc,
PyObject[] closure_cells)
|
static PyException |
makeException()
|
static PyException |
makeException(PyObject type)
|
static PyException |
makeException(PyObject type,
PyObject value)
|
static PyException |
makeException(PyObject type,
PyObject value,
PyObject traceback)
|
static boolean |
matchException(PyException pye,
PyObject e)
|
static void |
maybeWrite(java.lang.String type,
java.lang.String msg,
int level)
|
static void |
memory_error(java.lang.OutOfMemoryError t)
|
static PyException |
MemoryError(java.lang.String message)
|
static PyException |
NameError(java.lang.String message)
|
static PyInteger |
newBoolean(boolean t)
|
static PyCode |
newCode(int argcount,
java.lang.String[] varnames,
java.lang.String filename,
java.lang.String name,
boolean args,
boolean keywords,
PyFunctionTable funcs,
int func_id)
|
static PyCode |
newCode(int argcount,
java.lang.String[] varnames,
java.lang.String filename,
java.lang.String name,
boolean args,
boolean keywords,
PyFunctionTable funcs,
int func_id,
java.lang.String[] cellvars,
java.lang.String[] freevars,
int npurecell,
int moreflags)
|
static PyCode |
newCode(int argcount,
java.lang.String[] varnames,
java.lang.String filename,
java.lang.String name,
int firstlineno,
boolean args,
boolean keywords,
PyFunctionTable funcs,
int func_id)
|
static PyCode |
newCode(int argcount,
java.lang.String[] varnames,
java.lang.String filename,
java.lang.String name,
int firstlineno,
boolean args,
boolean keywords,
PyFunctionTable funcs,
int func_id,
java.lang.String[] cellvars,
java.lang.String[] freevars,
int npurecell,
int moreflags)
|
static PyFloat |
newFloat(double v)
|
static PyFloat |
newFloat(float v)
|
static PyComplex |
newImaginary(double v)
|
static PyInteger |
newInteger(int i)
|
static PyObject |
newInteger(long i)
|
static PyCode |
newJavaCode(java.lang.Class cls,
java.lang.String name)
|
static PyObject |
newJavaFunc(java.lang.Class cls,
java.lang.String name)
|
static PyLong |
newLong(java.math.BigInteger i)
|
static PyLong |
newLong(java.lang.String s)
|
static PyString |
newString(char c)
|
static PyString |
newString(java.lang.String s)
|
static PyException |
OverflowError(java.lang.String message)
|
static void |
OverflowWarning(java.lang.String message)
|
static void |
print(PyObject o)
|
static void |
print(PyObject file,
PyObject o)
|
static void |
printComma(PyObject o)
|
static void |
printComma(PyObject file,
PyObject o)
|
static void |
printException(java.lang.Throwable t)
|
static void |
printException(java.lang.Throwable t,
PyFrame f)
|
static void |
printException(java.lang.Throwable t,
PyFrame f,
PyObject file)
|
static void |
println()
|
static void |
println(PyObject o)
|
static void |
println(PyObject file,
PyObject o)
|
static void |
printlnv(PyObject file)
|
static void |
printResult(PyObject ret)
|
static boolean |
py2boolean(PyObject o)
|
static byte |
py2byte(PyObject o)
|
static char |
py2char(PyObject o)
|
static char |
py2char(PyObject o,
java.lang.String msg)
|
static double |
py2double(PyObject o)
|
static float |
py2float(PyObject o)
|
static int |
py2int(PyObject o)
|
static int |
py2int(PyObject o,
java.lang.String msg)
|
static long |
py2long(PyObject o)
|
static short |
py2short(PyObject o)
|
static void |
py2void(PyObject o)
|
static PyException |
ReferenceError(java.lang.String message)
|
static java.lang.Class |
relFindClass(java.lang.Class home,
java.lang.String name)
|
static PyObject |
runCode(PyCode code,
PyObject locals,
PyObject globals)
|
static void |
runMain(java.lang.Class mainClass,
java.lang.String[] args,
java.lang.String[] packages,
java.lang.String[] props,
java.lang.String frozenPackage,
java.lang.String[] modules)
|
static PyException |
RuntimeError(java.lang.String message)
|
static void |
RuntimeWarning(java.lang.String message)
|
static java.lang.String |
safeRepr(PyObject o)
|
static void |
saveClassFile(java.lang.String name,
java.io.ByteArrayOutputStream bytestream)
|
static PyException |
setException(java.lang.Throwable t,
PyFrame frame)
|
static void |
setFrame(PyFrame f)
|
static PySystemState |
setSystemState(PySystemState newSystemState)
|
static PyException |
StopIteration(java.lang.String message)
|
static PyException |
SyntaxError(java.lang.String message)
|
static void |
SyntaxWarning(java.lang.String message)
|
static PyException |
SystemError(java.lang.String message)
|
static java.lang.Object |
tojava(PyObject o,
java.lang.Class c)
Convert a given PyObject to an instance of a Java class.
|
static java.lang.Object |
tojava(PyObject o,
java.lang.String s)
|
static PyException |
TypeError(java.lang.String message)
|
static PyException |
UnboundLocalError(java.lang.String message)
|
static PyException |
UnicodeError(java.lang.String message)
|
static PyObject[] |
unpackSequence(PyObject o,
int length)
|
static void |
UserWarning(java.lang.String message)
|
static PyException |
ValueError(java.lang.String message)
|
static void |
warning(PyObject category,
java.lang.String message)
|
static void |
warning(PyObject category,
java.lang.String message,
java.lang.String filename,
int lineno,
java.lang.String module,
PyObject registry)
|
static void |
Warning(java.lang.String message)
|
static void |
writeComment(java.lang.String type,
java.lang.String msg)
|
static void |
writeDebug(java.lang.String type,
java.lang.String msg)
|
static void |
writeError(java.lang.String type,
java.lang.String msg)
|
static void |
writeMessage(java.lang.String type,
java.lang.String msg)
|
static void |
writeWarning(java.lang.String type,
java.lang.String msg)
|
static PyException |
ZeroDivisionError(java.lang.String message)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static PyObject None
public static PyObject Ellipsis
public static PyObject NotImplemented
public static java.lang.String[] NoKeywords
public static PyObject[] EmptyObjects
public static PyTuple EmptyTuple
public static PyInteger Zero
public static PyInteger One
public static PyString EmptyString
public static PyString Newline
public static PyString Space
public static java.lang.Object NoConversion
public static PyObject OSError
public static PyObject NotImplementedError
public static PyObject EnvironmentError
public static PyObject OverflowError
public static PyObject RuntimeError
public static PyObject KeyboardInterrupt
public static PyObject FloatingPointError
public static PyObject SyntaxError
public static PyObject IndentationError
public static PyObject TabError
public static PyObject AttributeError
public static PyObject IOError
public static PyObject KeyError
public static PyObject AssertionError
public static PyObject TypeError
public static PyObject ReferenceError
public static PyObject SystemError
public static PyObject IndexError
public static PyObject ZeroDivisionError
public static PyObject NameError
public static PyObject UnboundLocalError
public static PyObject SystemExit
public static PyObject StopIteration
public static PyObject ImportError
public static PyObject ValueError
public static PyObject UnicodeError
public static PyObject EOFError
public static PyObject MemoryError
public static PyObject ArithmeticError
public static PyObject LookupError
public static PyObject StandardError
public static PyObject Exception
public static PyObject Warning
public static PyObject UserWarning
public static PyObject DeprecationWarning
public static PyObject SyntaxWarning
public static PyObject OverflowWarning
public static PyObject RuntimeWarning
public static PyObject JavaError
public static PySystemState defaultSystemState
public static StdoutWrapper stderr
public static final int ERROR
public static final int WARNING
public static final int MESSAGE
public static final int COMMENT
public static final int DEBUG
Method Detail |
public static PyException OverflowError(java.lang.String message)
public static PyException RuntimeError(java.lang.String message)
public static PyException FloatingPointError(java.lang.String message)
public static PyException SyntaxError(java.lang.String message)
public static PyException AttributeError(java.lang.String message)
public static PyException IOError(java.io.IOException ioe)
public static PyException IOError(java.lang.String message)
public static PyException KeyError(java.lang.String message)
public static PyException AssertionError(java.lang.String message)
public static PyException TypeError(java.lang.String message)
public static PyException ReferenceError(java.lang.String message)
public static PyException SystemError(java.lang.String message)
public static PyException IndexError(java.lang.String message)
public static PyException ZeroDivisionError(java.lang.String message)
public static PyException NameError(java.lang.String message)
public static PyException UnboundLocalError(java.lang.String message)
public static PyException StopIteration(java.lang.String message)
public static PyException ImportError(java.lang.String message)
public static PyException ValueError(java.lang.String message)
public static PyException UnicodeError(java.lang.String message)
public static PyException EOFError(java.lang.String message)
public static void memory_error(java.lang.OutOfMemoryError t)
public static PyException MemoryError(java.lang.String message)
public static void Warning(java.lang.String message)
public static void UserWarning(java.lang.String message)
public static void DeprecationWarning(java.lang.String message)
public static void SyntaxWarning(java.lang.String message)
public static void OverflowWarning(java.lang.String message)
public static void RuntimeWarning(java.lang.String message)
public static void warning(PyObject category, java.lang.String message)
public static void warning(PyObject category, java.lang.String message, java.lang.String filename, int lineno, java.lang.String module, PyObject registry)
public static PyException JavaError(java.lang.Throwable t)
public static java.lang.Object tojava(PyObject o, java.lang.Class c)
PyObject
to an instance of a Java class.
Identical to o.__tojava__(c)
except that it will
raise a TypeError
if the conversion fails.
o
- the PyObject
to convert.c
- the class to convert it to.public static java.lang.Object tojava(PyObject o, java.lang.String s)
public static PyObject jfindattr(PyProxy proxy, java.lang.String name)
public static PyObject jgetattr(PyProxy proxy, java.lang.String name)
public static final PyInteger newInteger(int i)
public static PyObject newInteger(long i)
public static PyLong newLong(java.lang.String s)
public static PyLong newLong(java.math.BigInteger i)
public static PyComplex newImaginary(double v)
public static PyFloat newFloat(float v)
public static PyFloat newFloat(double v)
public static PyString newString(char c)
public static PyString newString(java.lang.String s)
public static PyInteger newBoolean(boolean t)
public static PyCode newCode(int argcount, java.lang.String[] varnames, java.lang.String filename, java.lang.String name, boolean args, boolean keywords, PyFunctionTable funcs, int func_id, java.lang.String[] cellvars, java.lang.String[] freevars, int npurecell, int moreflags)
public static PyCode newCode(int argcount, java.lang.String[] varnames, java.lang.String filename, java.lang.String name, int firstlineno, boolean args, boolean keywords, PyFunctionTable funcs, int func_id, java.lang.String[] cellvars, java.lang.String[] freevars, int npurecell, int moreflags)
public static PyCode newCode(int argcount, java.lang.String[] varnames, java.lang.String filename, java.lang.String name, boolean args, boolean keywords, PyFunctionTable funcs, int func_id)
public static PyCode newCode(int argcount, java.lang.String[] varnames, java.lang.String filename, java.lang.String name, int firstlineno, boolean args, boolean keywords, PyFunctionTable funcs, int func_id)
public static PyCode newJavaCode(java.lang.Class cls, java.lang.String name)
public static PyObject newJavaFunc(java.lang.Class cls, java.lang.String name)
public static boolean initPython()
public static java.lang.Class relFindClass(java.lang.Class home, java.lang.String name)
public static java.lang.Class findClass(java.lang.String name)
public static java.lang.Class findClassEx(java.lang.String name, java.lang.String reason)
public static void initProxy(PyProxy proxy, java.lang.String module, java.lang.String pyclass, java.lang.Object[] args, java.lang.String[] packages, java.lang.String[] props, boolean frozen)
public static void initProxy(PyProxy proxy, java.lang.String module, java.lang.String pyclass, java.lang.Object[] args, java.lang.String[] packages, java.lang.String[] props, java.lang.String frozenPackage, java.lang.String[] modules)
public static void initRunnable(java.lang.String module, PyObject dict)
public static void runMain(java.lang.Class mainClass, java.lang.String[] args, java.lang.String[] packages, java.lang.String[] props, java.lang.String frozenPackage, java.lang.String[] modules) throws java.lang.Exception
java.lang.Exception
public static void printException(java.lang.Throwable t)
public static void printException(java.lang.Throwable t, PyFrame f)
public static void printException(java.lang.Throwable t, PyFrame f, PyObject file)
public static void displayException(PyObject type, PyObject value, PyObject tb, PyObject file)
public static void assert_(PyObject test, PyObject message)
public static void assert_(PyObject test)
public static void addTraceback(java.lang.Throwable t, PyFrame frame)
public static PyException setException(java.lang.Throwable t, PyFrame frame)
public static boolean matchException(PyException pye, PyObject e)
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)
public static PyObject runCode(PyCode code, PyObject locals, PyObject globals)
public static void exec(PyObject o, PyObject globals, PyObject locals)
public static final ThreadState getThreadState()
public static final ThreadState getThreadState(PySystemState newSystemState)
public static final PySystemState setSystemState(PySystemState newSystemState)
public static final PySystemState getSystemState()
public static PyFrame getFrame()
public static void setFrame(PyFrame f)
public static void print(PyObject file, PyObject o)
public static void printComma(PyObject file, PyObject o)
public static void println(PyObject file, PyObject o)
public static void printlnv(PyObject file)
public static void print(PyObject o)
public static void printComma(PyObject o)
public static void println(PyObject o)
public static void println()
public static boolean py2boolean(PyObject o)
public static byte py2byte(PyObject o)
public static short py2short(PyObject o)
public static int py2int(PyObject o)
public static int py2int(PyObject o, java.lang.String msg)
public static long py2long(PyObject o)
public static float py2float(PyObject o)
public static double py2double(PyObject o)
public static char py2char(PyObject o)
public static char py2char(PyObject o, java.lang.String msg)
public static void py2void(PyObject o)
public static PyObject java2py(java.lang.Object o)
public static PyObject makeClass(java.lang.String name, PyObject[] bases, PyCode code, PyObject doc)
public static PyObject makeClass(java.lang.String name, PyObject[] bases, PyCode code, PyObject doc, PyObject[] closure_cells)
public static PyObject makeClass(java.lang.String name, PyObject[] bases, PyCode code, PyObject doc, java.lang.Class proxyClass)
public static PyObject makeClass(java.lang.String name, PyObject[] bases, PyCode code, PyObject doc, java.lang.Class proxyClass, PyObject[] closure_cells)
public static java.lang.String getName()
public static CompilerFlags getCompilerFlags()
public static CompilerFlags getCompilerFlags(int flags, boolean dont_inherit)
public static PyCode compile(org.python.parser.ast.modType node, java.lang.String filename)
public static PyCode compile(org.python.parser.ast.modType node, java.lang.String name, java.lang.String filename)
public static PyCode compile(org.python.parser.ast.modType node, java.lang.String name, java.lang.String filename, boolean linenumbers, boolean printResults)
public static PyCode compile(java.io.InputStream istream, java.lang.String filename, java.lang.String type)
public static PyCode compile_flags(org.python.parser.ast.modType node, java.lang.String name, java.lang.String filename, boolean linenumbers, boolean printResults, CompilerFlags cflags)
public static PyCode compile_flags(java.io.InputStream istream, java.lang.String filename, java.lang.String type, CompilerFlags cflags)
public static PyCode compile_flags(java.lang.String data, java.lang.String filename, java.lang.String type, CompilerFlags cflags)
public static PyObject compile_command_flags(java.lang.String string, java.lang.String filename, java.lang.String kind, CompilerFlags cflags, boolean stdprompt)
public static PyObject[] unpackSequence(PyObject o, int length)
public static PyObject iter(PyObject seq, java.lang.String message)
public static long id(PyObject o)
public static java.lang.String idstr(PyObject o)
public static long java_obj_id(java.lang.Object o)
public static java.lang.String safeRepr(PyObject o)
public static void printResult(PyObject ret)
public static void maybeWrite(java.lang.String type, java.lang.String msg, int level)
public static void writeError(java.lang.String type, java.lang.String msg)
public static void writeWarning(java.lang.String type, java.lang.String msg)
public static void writeMessage(java.lang.String type, java.lang.String msg)
public static void writeComment(java.lang.String type, java.lang.String msg)
public static void writeDebug(java.lang.String type, java.lang.String msg)
public static void saveClassFile(java.lang.String name, java.io.ByteArrayOutputStream bytestream)
public static boolean isInstance(PyObject obj, PyObject cls)
public static boolean isSubClass(PyObject derived, PyObject cls)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |