Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addIncludePaths(String...) - Method in class jep.JepConfig
-
Adds a path of directories separated by File.pathSeparator that will be appended to the sub-intepreter's
sys.path - addSharedModules(String...) - Method in class jep.JepConfig
-
Adds module names to the set of shared modules
- addTopLevelPackageName(String) - Method in class jep.NamingConventionClassEnquirer
-
Adds a top level package name to the list of names that should be considered as Java packages
- AllowPythonClassEnquirer - Class in jep
-
A
ClassEnquirerthat defines specific packages as Python packages. - AllowPythonClassEnquirer(ClassEnquirer, String...) - Constructor for class jep.AllowPythonClassEnquirer
-
Constructor
- as(Class<T>) - Method in class jep.python.PyObject
-
Attempt to convert this object to a Java equivalant using the builtin Jep conversions.
C
- call(Object...) - Method in class jep.python.PyCallable
-
Invokes this callable with the args in order.
- call(Object[], Map<String, Object>) - Method in class jep.python.PyCallable
-
Invokes this callable with positional args and keyword args.
- call(Map<String, Object>) - Method in class jep.python.PyCallable
-
Invokes this callable with keyword args.
- callable(Object) - Method in interface jep.python.PyBuiltins
- callAs(Class<T>, Object...) - Method in class jep.python.PyCallable
-
Invokes this callable with the args in order, converting the return value to the given class.
- callAs(Class<T>, Object[], Map<String, Object>) - Method in class jep.python.PyCallable
-
Invokes this callable with positional args and keyword args, converting the return value to the given class.
- callAs(Class<T>, Map<String, Object>) - Method in class jep.python.PyCallable
-
Invokes this callable with keyword args, converting the return value to the given class.
- ClassEnquirer - Interface in jep
-
Interface to enquire if a name is available to be imported from Java.
- ClassList - Class in jep
-
A singleton that searches for loaded classes from the JRE and the Java classpath.
- cleanupWeakReferences() - Method in class jep.python.MemoryManager
-
Cleans out weak references to PyPointers associated with this Interpreter.
- close() - Method in interface jep.Interpreter
- close() - Method in class jep.Jep
-
Shuts down the Python interpreter.
- close() - Method in class jep.MainInterpreter
-
Stop the interpreter thread.
- close() - Method in class jep.python.PyObject
- closeInterpreter(Jep) - Method in class jep.python.MemoryManager
-
Stop managing memory for an interpreter.
- createSubInterpreter() - Method in class jep.JepConfig
-
Creates a new Jep instance and its associated sub-interpreter with this JepConfig.
D
- delattr(PyObject, String) - Method in interface jep.python.PyBuiltins
- delAttr(String) - Method in class jep.python.PyObject
-
Deletes an attribute on the wrapped Python object, similar to the Python built-in function delattr.
- dict() - Method in interface jep.python.PyBuiltins
- dict(Map<?, ?>) - Method in interface jep.python.PyBuiltins
- dir(PyObject) - Method in interface jep.python.PyBuiltins
- DirectNDArray<T> - Class in jep
-
Represents a numpy.ndarray in Java.
- DirectNDArray(T) - Constructor for class jep.DirectNDArray
-
Constructor for a Java DirectNDArray.
- DirectNDArray(T, boolean) - Constructor for class jep.DirectNDArray
-
Constructor for a Java DirectNDArray.
- DirectNDArray(T, boolean, int...) - Constructor for class jep.DirectNDArray
-
Constructor for a Java DirectNDArray.
- DirectNDArray(T, int...) - Constructor for class jep.DirectNDArray
-
Constructor for a Java DirectNDArray.
E
- equals(Object) - Method in class jep.DirectNDArray
- equals(Object) - Method in class jep.NDArray
- equals(Object) - Method in class jep.python.PyObject
-
Checks that the Java type matches and if so then uses Python's rich compare with the == operator to check if this wrapped Python object matches the other PyObject.
- eval(String) - Method in interface jep.Interpreter
-
Evaluate Python statements.
- eval(String) - Method in class jep.Jep
- eval(String, PyObject) - Method in interface jep.python.PyBuiltins
- eval(String, PyObject, PyObject) - Method in interface jep.python.PyBuiltins
- exec(String) - Method in interface jep.Interpreter
-
Execute an arbitrary number of Python statements in this interpreter.
- exec(String) - Method in class jep.Jep
- exec(String, PyObject) - Method in interface jep.python.PyBuiltins
- exec(String, PyObject, PyObject) - Method in interface jep.python.PyBuiltins
F
- frozenset() - Method in interface jep.python.PyBuiltins
- frozenset(Iterable<?>) - Method in interface jep.python.PyBuiltins
- frozenset(Object[]) - Method in interface jep.python.PyBuiltins
G
- get(Interpreter) - Static method in interface jep.python.PyBuiltins
- getattr(PyObject, String) - Method in interface jep.python.PyBuiltins
- getAttr(String) - Method in class jep.python.PyObject
-
Access an attribute of the wrapped Python Object, similar to the Python built-in function getattr.
- getAttr(String, Class<T>) - Method in class jep.python.PyObject
-
Access an attribute of the wrapped Python Object, similar to the Python built-in function getattr.
- getClassNames(String) - Method in class jep.AllowPythonClassEnquirer
- getClassNames(String) - Method in interface jep.ClassEnquirer
-
Given a Java package name, gets the fully-qualified classnames available for import in the package.
- getClassNames(String) - Method in class jep.ClassList
-
get classnames in package
- getClassNames(String) - Method in class jep.NamingConventionClassEnquirer
- getData() - Method in class jep.DirectNDArray
- getData() - Method in class jep.NDArray
- getDimensions() - Method in class jep.DirectNDArray
- getDimensions() - Method in class jep.NDArray
- getInstance() - Static method in class jep.ClassList
-
get ClassList instance
- getLength(T) - Method in class jep.DirectNDArray
- getPyObject() - Method in class jep.python.InvocationHandler
- getSubPackages(String) - Method in class jep.AllowPythonClassEnquirer
- getSubPackages(String) - Method in interface jep.ClassEnquirer
-
Given a Java package name, gets the sub-packages available.
- getSubPackages(String) - Method in class jep.ClassList
- getSubPackages(String) - Method in class jep.NamingConventionClassEnquirer
- getValue(String) - Method in interface jep.Interpreter
-
Retrieves a value from this Python interpreter.
- getValue(String) - Method in class jep.Jep
- getValue(String, Class<T>) - Method in interface jep.Interpreter
-
Like
Interpreter.getValue(String)but allows specifying the return type. - getValue(String, Class<T>) - Method in class jep.Jep
H
- hasattr(PyObject, String) - Method in interface jep.python.PyBuiltins
- hashCode() - Method in class jep.DirectNDArray
- hashCode() - Method in class jep.NDArray
- hashCode() - Method in class jep.python.PyObject
-
Produces the hash code of the wrapped Python object by using the Python built-in method hash.
I
- id(PyObject) - Method in interface jep.python.PyBuiltins
- Interpreter - Interface in jep
-
An interface for using a Python Interpreter.
- InvocationHandler - Class in jep.python
-
Handle Proxy method calls.
- InvocationHandler(Jep, long, boolean) - Constructor for class jep.python.InvocationHandler
-
Creates a new
InvocationHandlerinstance. - InvocationHandler(PyObject, boolean) - Constructor for class jep.python.InvocationHandler
-
Creates a new
InvocationHandlerinstance. - invoke(Object, Method, Object[]) - Method in class jep.python.InvocationHandler
-
Processes a method invocation on a proxy instance and returns the result.
- invoke(String, Object...) - Method in interface jep.Interpreter
-
Invokes a Python function.
- invoke(String, Object...) - Method in class jep.Jep
- invoke(String, Object[], Map<String, Object>) - Method in interface jep.Interpreter
-
Invokes a Python function.
- invoke(String, Object[], Map<String, Object>) - Method in class jep.Jep
- invoke(String, Map<String, Object>) - Method in interface jep.Interpreter
-
Invokes a Python function.
- invoke(String, Map<String, Object>) - Method in class jep.Jep
- isinstance(PyObject, PyObject) - Method in interface jep.python.PyBuiltins
- isJavaPackage(String) - Method in class jep.AllowPythonClassEnquirer
- isJavaPackage(String) - Method in interface jep.ClassEnquirer
-
Checks if the name is likely available in Java as a package.
- isJavaPackage(String) - Method in class jep.ClassList
-
Checks if the String is known to the ClassList as an available package
- isJavaPackage(String) - Method in class jep.NamingConventionClassEnquirer
- isolated() - Static method in class jep.SubInterpreterOptions
-
Create a new SubInterpreterOptions with the default isolated settings.
- issubclass(PyObject, PyObject) - Method in interface jep.python.PyBuiltins
- isUnsigned() - Method in class jep.DirectNDArray
- isUnsigned() - Method in class jep.NDArray
- isValidThread() - Method in class jep.Jep
-
Deprecated.For internal usage only. Internal Only
J
- jep - package jep
- Jep - Class in jep
-
As of Jep 3.9, you should strive to instantiate either a SubInterpreter or a SharedInterpreter instance and for interacting with the interpreter use the interface Interpreter.
- Jep() - Constructor for class jep.Jep
-
Deprecated.Deprecated in 3.9. Use SubInterpreter or SharedInterpreter instead. If you used Jep objects in previous releases, use SubIntepreter for the same behavior.
- Jep(JepConfig) - Constructor for class jep.Jep
-
Deprecated.Deprecated in 3.9. Use SubInterpreter or SharedInterpreter instead. If you used Jep objects in previous releases, use SubIntepreter for the same behavior.
- jep.python - package jep.python
- JepAccess - Class in jep
-
Allow access to Jep internal structure in sub-packages.
- JepConfig - Class in jep
-
A configuration object for constructing a Jep instance, corresponding to the configuration of the particular Python sub-interpreter.
- JepConfig() - Constructor for class jep.JepConfig
- JepException - Exception Class in jep
-
JepException - it happens.
- JepException() - Constructor for exception class jep.JepException
-
Creates a new
JepExceptioninstance. - JepException(String) - Constructor for exception class jep.JepException
-
Creates a new
JepExceptioninstance. - JepException(String, Throwable) - Constructor for exception class jep.JepException
-
Creates a new
JepExceptioninstance. - JepException(Throwable) - Constructor for exception class jep.JepException
-
Creates a new
JepExceptioninstance.
K
- kwargs() - Element in annotation interface jep.PyMethod
-
Set to true to indicate that this Java method should accept keyword arguments when it is called from Python.
L
- legacy() - Static method in class jep.SubInterpreterOptions
-
Create a new SubInterpreterOptions with the default legacy settings.
- list() - Method in interface jep.python.PyBuiltins
- list(Iterable<?>) - Method in interface jep.python.PyBuiltins
- list(Object[]) - Method in interface jep.python.PyBuiltins
M
- main(String[]) - Static method in class jep.ClassList
-
for testing only
- main(String[]) - Static method in class jep.Run
-
Describe
mainmethod here. - MainInterpreter - Class in jep
-
The main Python interpreter that all sub-interpreters will be created from.
- MemoryManager - Class in jep.python
-
Manages the native memory associated with PyObjects in an Interpreter.
- MemoryManager() - Constructor for class jep.python.MemoryManager
N
- NamingConventionClassEnquirer - Class in jep
-
A simple
ClassEnquirerto see if the package/class to be imported in a Python interpreter should be considered as a Java package/class. - NamingConventionClassEnquirer() - Constructor for class jep.NamingConventionClassEnquirer
-
Convenience constructor.
- NamingConventionClassEnquirer(boolean) - Constructor for class jep.NamingConventionClassEnquirer
-
Constructor
- NamingConventionClassEnquirer(boolean, boolean) - Constructor for class jep.NamingConventionClassEnquirer
-
Constructor
- NDArray<T> - Class in jep
-
Represents a numpy.ndarray in Java.
- NDArray(T) - Constructor for class jep.NDArray
-
Constructor for a Java NDArray.
- NDArray(T, boolean) - Constructor for class jep.NDArray
-
Constructor for a Java NDArray.
- NDArray(T, boolean, int...) - Constructor for class jep.NDArray
-
Constructor for a Java NDArray.
- NDArray(T, int...) - Constructor for class jep.NDArray
-
Constructor for a Java NDArray.
O
- object() - Method in interface jep.python.PyBuiltins
- openInterpreter(Jep) - Method in class jep.python.MemoryManager
P
- proxy(Class<T>, Class<?>...) - Method in class jep.python.PyObject
-
Create a dynamic proxy that implements the provided interfaces by calling the corresponding Python methods on this PyObject.
- PyBuiltins - Interface in jep.python
-
Interface for accessing some of the functions of the Python builtins module from Java.
- PyCallable - Class in jep.python
-
A Java object that wraps a pointer to a Python callable.
- PyConfig - Class in jep
-
A configuration object for setting Python pre-initialization parameters.
- PyConfig() - Constructor for class jep.PyConfig
- PyMethod - Annotation Interface in jep
-
Can be used with a method or constructor to customize the behavior of Jep when the method is called from Python.
- PyObject - Class in jep.python
-
A Java object that wraps a pointer to a Python object.
- PyPointer - Class in jep.python
-
Contains pointers to a JepThread* and a PyObject* for using a PyObject* in Java as a PyObject or its subclasses.
R
- redirectStdErr(OutputStream) - Method in class jep.JepConfig
-
Redirects the Python interpreter's sys.stderr to the provided OutputStream.
- redirectStdout(OutputStream) - Method in class jep.JepConfig
-
Redirects the Python interpreter's sys.stdout to the provided OutputStream.
- RESTRICTED_PKG_NAMES - Static variable in interface jep.ClassEnquirer
-
Certain Java libraries (e.g.
- run(boolean) - Static method in class jep.Run
- Run - Class in jep
-
Executes a Python script in a Jep Interpreter.
- runScript(String) - Method in interface jep.Interpreter
-
Runs a Python script.
- runScript(String) - Method in class jep.Jep
S
- set() - Method in interface jep.python.PyBuiltins
- set(Iterable<?>) - Method in interface jep.python.PyBuiltins
- set(Object[]) - Method in interface jep.python.PyBuiltins
- set(String, Object) - Method in interface jep.Interpreter
-
Sets the Java Object into the interpreter's global scope with the specified variable name.
- set(String, Object) - Method in class jep.Jep
- setAllowDaemonThreads(boolean) - Method in class jep.SubInterpreterOptions
-
If this is false then the sub-interpreter's threading module won't be able to create daemon threads.
- setAllowExec(boolean) - Method in class jep.SubInterpreterOptions
-
If this is false then the runtime will not support replacing the current process via exec (e.g.
- setAllowFork(boolean) - Method in class jep.SubInterpreterOptions
-
If this is false then the runtime will not support forking the process in any thread where the sub-interpreter is currently active.
- setAllowThreads(boolean) - Method in class jep.SubInterpreterOptions
-
If this is false then the sub-interpreter's threading module won't be able to create threads.
- setattr(PyObject, String, Object) - Method in interface jep.python.PyBuiltins
- setAttr(String, Object) - Method in class jep.python.PyObject
-
Sets an attribute on the wrapped Python object, similar to the Python built-in function setattr.
- setCheckMultiInterpeExtensions(boolean) - Method in class jep.SubInterpreterOptions
-
Deprecated.Deprecated in Jep 4.2.1. This method is misspelled and has a typo in the name. Please use the correctly named
setCheckMultiInterpExtensions(boolean). The misspelled method will be removed in Jep 4.3. - setCheckMultiInterpExtensions(boolean) - Method in class jep.SubInterpreterOptions
-
If this is false then all extension modules may be imported, including legacy (single-phase init) modules, in any thread where the sub-interpreter is currently active.
- setClassEnquirer(ClassEnquirer) - Method in class jep.JepConfig
-
Sets a ClassEnquirer to determine which imports are Python vs Java, or null for the default
ClassList - setClassLoader(ClassLoader) - Method in class jep.JepConfig
-
Sets the ClassLoader to use when importing Java classes from Python
- setConfig(JepConfig) - Static method in class jep.SharedInterpreter
-
Sets interpreter settings for the all SharedInterpreters.
- setDontWriteBytecodeFlag(int) - Method in class jep.PyConfig
-
Set the Py_DontWriteBytecodeFlag variable on the python interpreter.
- setHashRandomizationFlag(int) - Method in class jep.PyConfig
-
Set the Py_HashRandomizationFlag variable on the python interpreter.
- setIgnoreEnvironmentFlag(int) - Method in class jep.PyConfig
-
Set the Py_IgnoreEnvironmentFlag variable on the python interpreter.
- setIncludePath(String) - Method in class jep.JepConfig
-
Sets a path of directories separated by File.pathSeparator that will be appended to the sub-intepreter's
sys.path - setInitParams(PyConfig) - Static method in class jep.MainInterpreter
-
Sets interpreter settings for the main Python interpreter.
- setJepLibraryPath(String) - Static method in class jep.MainInterpreter
-
Sets the path of the jep native library.
- setNoSiteFlag(int) - Method in class jep.PyConfig
-
Set the Py_NoSiteFlag variable on the python interpreter.
- setNoUserSiteDirectory(int) - Method in class jep.PyConfig
-
Set the Py_NoUserSiteDirectory variable on the python interpreter.
- setOptimizeFlag(int) - Method in class jep.PyConfig
-
Set the Py_OptimizeFlag variable on the python interpreter.
- setOwnGIL(boolean) - Method in class jep.SubInterpreterOptions
-
This determines the operation of the GIL for the sub-interpreter.
- setProgramName(String) - Method in class jep.PyConfig
-
Set the Py_SetProgramName variable on the python interpreter.
- setPythonHome(String) - Method in class jep.PyConfig
-
Set the home location on the python interpreter.
- setSharedModules(Set<String>) - Method in class jep.JepConfig
-
Sets the names of modules which should be shared with other Jep sub-interpreters.
- setSharedModulesArgv(String...) - Static method in class jep.MainInterpreter
-
Sets the sys.argv values on the main interpreter.
- setSubInterpreterOptions(SubInterpreterOptions) - Method in class jep.JepConfig
-
Set the configuration options for a sub-interpreter.
- setUseMainObmalloc(boolean) - Method in class jep.SubInterpreterOptions
-
If this is false then the sub-interpreter will use its own "object" allocator state.
- setVerboseFlag(int) - Method in class jep.PyConfig
-
Set the Py_VerboseFlag variable on the python interpreter.
- sharedImport(String) - Method in class jep.MainInterpreter
-
Import a module into the main interpreter on the correct thread for that interpreter.
- SharedInterpreter - Class in jep
-
Class for creating instances of Interpreters which share all imported modules.
- SharedInterpreter() - Constructor for class jep.SharedInterpreter
- SubInterpreter - Class in jep
-
Class for creating instances of Interpreters which are sandboxed from other Interpreters.
- SubInterpreter() - Constructor for class jep.SubInterpreter
-
Creates a new sub interpreter.
- SubInterpreter(JepConfig) - Constructor for class jep.SubInterpreter
- SubInterpreterOptions - Class in jep
-
A configuration object containing additional options for constructing a SubInterpreter.
T
- toString() - Method in class jep.JepConfig
- toString() - Method in class jep.PyConfig
- toString() - Method in class jep.python.PyObject
-
Produces the string representation of the wrapped Python object by using the Python built-in method str.
- toString() - Method in class jep.SubInterpreterOptions
- tuple() - Method in interface jep.python.PyBuiltins
- tuple(Iterable<?>) - Method in interface jep.python.PyBuiltins
- tuple(Object[]) - Method in interface jep.python.PyBuiltins
- type(PyObject) - Method in interface jep.python.PyBuiltins
V
- varargs() - Element in annotation interface jep.PyMethod
-
Set to true to indicate that this Java method should accept varargs when it is called from Python.
All Classes and Interfaces|All Packages|Serialized Form