Additional top-level classes in compilation unit: FixedFileWrapper, JavaCode, JavaFunc.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static ExtensiblePyObjectAdapter | adapter
Handles wrapping Java objects in PyObject to expose them to jython. |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| private static final PyString[] | bytes
Table used by |
| public static PyObject | |
| private static Console | console
The handler for interactive consoles, set by |
| public static volatile PySystemState | |
| public static PyObject | |
| public static final PyObject | Ellipsis
The singleton Ellipsis Python object - written as ... |
| public static final PyFrozenSet | EmptyFrozenSet
A frozenset with zero elements |
| public static final PyObject[] | EmptyObjects
A zero-length array of PyObject's to pass to functions when we have no arguments |
| public static final PyString | EmptyString
A zero-length Python byte string |
| public static final PyTuple | EmptyTuple
A tuple with zero elements |
| public static final PyUnicode | EmptyUnicode
A zero-length Python Unicode string |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static final PyBoolean | False
The Python boolean False |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| private static IdImpl | |
| private static final String | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| private static final PyInteger[] | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| private static int | |
| public static final PyString | Newline
A Python string containing '\n' |
| public static final Object | NoConversion
A unique object to indicate no conversion is possible in __tojava__ methods |
| public static final String[] | NoKeywords
A zero-length array of Strings to pass to functions that don't have any keyword arguments |
| public static final PyObject | None
The singleton None Python object |
| public static final PyObject | NotImplemented
The singleton NotImplemented Python object. |
| public static PyObject | |
| public static final PyInteger | One
The Python integer 1 |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static final PyString | Space
A Python string containing ' ' |
| public static PyObject | |
| public static StdoutWrapper | |
| pack-priv static StdoutWrapper | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| private static boolean | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| private static final ThreadStateMapping | |
| public static final long | TPFLAGS_BASETYPE
Set if the type allows subclassing |
| public static final long | TPFLAGS_HEAPTYPE
Set if the type object is dynamically allocated |
| public static final long | TPFLAGS_IS_ABSTRACT
Type is abstract and cannot be instantiated |
| public static final PyBoolean | True
The Python boolean True |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static final PyUnicode | UnicodeNewline
A Python unicode string containing '\n' |
| public static final PyUnicode | UnicodeSpace
A Python unicode string containing ' ' |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| private static PyObject | |
| public static final PyInteger | Zero
The Python integer 0 |
| public static PyObject |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static PyTuple | |
| private static boolean | |
| public static void | |
| private static void | appendSyntaxError(StringBuilder buf, PyObject value)
Helper to |
| private static void | appendSyntaxErrorText(StringBuilder
to append with generated message text buf, int the offset into text offset, String a source code line text)Generate two lines showing where a SyntaxError was caused. |
| private static String | asMessageString(PyObject value, boolean useRepr)
Defensive method to avoid exceptions from decoding (or import encodings) |
| public static void | |
| public static void | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static void | |
| private static void | checkClass(PyObject cls, String message)
Throw a TypeError with the specified message if cls does not appear to be a Python class. |
| public static PyCode | |
| public static PyObject | compile_command_flags(String string, String filename, CompileMode kind, CompilerFlags cflags, boolean stdprompt)
|
| public static PyCode | Returns: Code object for the compiled moduleModule node, coming from the parsing process node, String Internal name for the compiled code. Typically generated by
calling name, String getName().Source file name filename, boolean True to track source line numbers on the generated
code linenumbers, boolean True to call the sys.displayhook on the result of
the code printResults, CompilerFlags Compiler flags cflags)Entry point for compiling modules. |
| public static PyCode | |
| public static PyCode | compile_flags(InputStream istream, String filename, CompileMode kind, CompilerFlags cflags)
Compiles python source code coming from a file or another external stream |
| public static PyCode | compile_flags(String data, String filename, CompileMode kind, CompilerFlags cflags)
Compiles python source code coming from String (raw bytes) data. |
| public static void | |
| private static PyObject | Returns: null if cls provides no checker, otherwise the result of calling the checkerthe argument to call the checker with checkerArg, PyObject a Python class cls, String the checker name checkerName)Attempt to dispatch an isinstance/issubclass call to cls's associated __instancecheck__/__subclasscheck__. |
| public static void | displayException(PyObject
of exception type, PyObject the exception parameter (second argument to value, PyObject raise)traceback of the call stack where the exception originally occurred tb, PyObject to print encoded string to, or null meaning standard error file)Print the description of an exception as a big string. |
| protected static PyObject | |
| public static PyException | |
| public static PyException | |
| private static PyString | exceptionToBytes(PyObject type, PyObject value, PyObject tb, String encoding, String errors)
Helper for |
| pack-priv static String | Returns: string representation of the traceback and exceptionof exception type, PyObject the exception parameter (second argument to value, PyObject raise)traceback of the call stack where the exception originally occurred tb)Format the description of an exception as a big string. |
| public static void | |
| public static String | Returns: unicode version of pathas filename)bytes to decode, or already as unicodeReturn a file name or path as Unicode (Java UTF-16 |
| public static String | Returns: unicode version of the file nameas filename)bytes to decode, or already as unicodeAs |
| private static List | Returns: equivalent Java lista Python search path path)Convert a |
| public static PyString | Returns: encoded bytes version of pathas filename)unicode to encode, or already as bytesReturn a PyString object we can use as a file name or file path in places where Python
expects a |
| public static PyString | Returns: encoded bytes version of pathas filename)unicode to encode, or already as bytesReturn a PyString object we can use as a file name or file path in places where Python
expects a |
| public static Class | |
| public static Class | Returns: the class, ornull if it simply wasn't foundName of the Java class. name, String for finding the class. Used in debugging messages. reason)Find and load a Java class by name. |
| private static Class | Returns: the loaded classof the Java class to load and initialise name, String to be given in debug output (or reason)null to suppress debug output.Common code for |
| private static void | |
| public static PyException | |
| public static void | |
| public static String | |
| public static String | |
| private static PyException | |
| public static void | |
| public static PyException | |
| public static ExtensiblePyObjectAdapter | |
| private static String | |
| public static CompilerFlags | |
| public static CompilerFlags | |
| public static CompilerFlags | |
| public static Console | Returns: the Jython ConsoleGet the Jython Console (used for |
| public static PyString | |
| public static PyString | |
| public static String | |
| public static String | |
| private static PyObject | |
| public static PyFrame | |
| public static synchronized String | |
| private static String | |
| public static final PySystemState | |
| public static final ThreadState | |
| public static final ThreadState | |
| pack-priv static void | handleSystemExit(PyException
supplies the message or exit status exc)Exit the process, if |
| public static long | |
| public static String | |
| public static PyException | |
| public static boolean | |
| public static void | |
| private static PyObject | |
| public static PyException | |
| pack-priv static void | |
| private static PyObject | |
| public static void | |
| public static synchronized boolean | |
| public static void | installConsole(Console
The new Console object console)Install the provided Console, first uninstalling any current one. |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static boolean | |
| public static boolean | |
| public static PyObject | |
| public static PyObject | java2py(Object o)
Uses the PyObjectAdapter passed to |
| public static long | |
| public static PyException | |
| public static synchronized PyObject | Returns: a Python-class that extendscls and interfceReturns a Python-class that extends |
| public static PyObject[] | javas2pys(Object... objects)
Uses the PyObjectAdapter passed to |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| private static Class | |
| pack-priv static PyObject[] | Returns: array of elements from iterableto evaluate iterable)Turn any Python iterable into an array of its elements. |
| public static final PyString | |
| public static final PyString | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| private static File | |
| public static final PyUnicode | |
| public static boolean | matchException(PyException pye, PyObject exc)
Deprecated
As of Jython 2.5, use
PyException#match instead.
|
| pack-priv static void | |
| public static void | |
| public static PyException | |
| public static PyException | |
| public static PyBoolean | |
| pack-priv static PyString | |
| public static PyCode | |
| public static PyCode | |
| 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 PyObject | |
| public static PyObject | |
| public static PyObject | |
| public static PyFloat | |
| public static PyFloat | |
| public static PyComplex | |
| public static final PyInteger | |
| public static PyObject | |
| public static <T> T | |
| public static <T> T | Returns: an instance of cls in form of the interface jcls- the class to be instanciated cls, Class<T> - the Java-type to be returned jcls, PyObject[] for the Python-class constructor args, String[] are applied to the last args keywords)This method is a compact helper to access Python-constructors from Java. |
| public static <T> T | Returns: an instance of cls in form of the interface jcls- the class to be instanciated cls, Class<T> - the Java-type to be returned jcls, String[] are applied to the last args keywords, Object... are automatically converted to Jython-PyObjects args)This method is a compact helper to access Python-constructors from Java. |
| public static <T> T | Returns: a new instance of the desired classthe module containing the desired class module, Class<T> Java-type of the desired clas, must have the same name jcls, Object... constructor-arguments args)Works like |
| public static <T> T | Returns: a new instance of the desired classthe module containing the desired class module, Class<T> Java-type of the desired class, must have the same name jcls, String[] are applied to the last keywords, Object... args in the listconstructor-arguments args)Works like |
| public static PyCode | |
| public static PyObject | |
| public static PyLong | |
| public static PyLong | |
| public static PyLong | |
| public static PyLong | |
| public static PyString | |
| pack-priv static PyString | |
| public static PyString | |
| public static PyStringMap | |
| public static PyString | Returns: PyString or PyUnicode according to content of
s.string content s)Return a |
| public static PyString | Returns: PyString or PyUnicode according to content of
s.string of which the type sets a precedent precedent, String string content s)Return a |
| public static PyString | |
| public static PyObject | |
| public static PyUnicode | Returns: a new or re-usedPyUnicodeto convert to a c)PyUnicode.Return a not-necessarily new |
| public static PyUnicode | Returns: a new or re-usedPyUnicodeto wrap as a s)PyUnicode.Return a not-necessarily new |
| public static PyUnicode | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | printException(Throwable
to display t)Display an exception and stack trace through
|
| public static void | printException(Throwable
to display t, PyFrame frame at which to start the stack trace f)Display an exception and stack trace through
|
| public static synchronized void | printException(Throwable
to display t, PyFrame frame at which to start the stack trace f, PyObject output onto this stream or file)Py#stderr if nullDisplay an exception and stack trace. |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static boolean | |
| public static byte | |
| public static char | |
| public static char | |
| public static double | |
| public static float | |
| public static int | |
| public static int | |
| public static long | |
| public static short | |
| public static void | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| public static PyException | |
| public static PyObject | |
| public static void | runMain(PyRunnable main, String[] args)
Initializes a default PythonInterpreter and runs the code from
|
| public static void | runMain(CodeBootstrap main, String[] args)
Initializes a default PythonInterpreter and runs the code loaded from the
|
| public static PyException | |
| public static void | |
| public static void | |
| protected static void | setAdapter(ExtensiblePyObjectAdapter
The new ExtensiblePyObjectAdapter adapter)Set the ExtensiblePyObjectAdapter used by java2py. |
| public static PyException | |
| public static void | |
| public static final PySystemState | |
| public static PyException | |
| public static PyException | |
| public static void | |
| public static PyException | |
| public static <T> T | |
| public static Object | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static PyException | |
| public static void | |
| public static PyObject[] | |
| public static void | |
| public static PyException | |
| private static String | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static PyException |