| Package | Description |
|---|---|
| com.github.adchilds.jython | |
| com.github.adchilds.jython.exception |
| Modifier and Type | Method and Description |
|---|---|
static org.python.core.PyCode |
JythonScript.compile(File file)
Compiles the given Jython script into a
PyCode object. |
static org.python.core.PyCode |
JythonScript.compile(String filePath)
Compiles the Jython script at the given
filePath into a PyCode object. |
static org.python.core.PyCode |
JythonScript.compile(URL fileUrl)
Compiles the Jython script at the given
fileUrl into a PyCode object. |
static org.python.core.PyCode |
JythonScript.compileString(String script)
Compiles the given Jython script into a
PyCode object. |
static Object |
JythonScript.evaluate(File scriptFile,
Object... args)
Evaluates the given Jython script, returning the result as its equivalent Java type.
|
static Object |
JythonScript.evaluate(InputStream inputStream,
Object... args)
Evaluates the given Jython script, returning the result as its equivalent Java type.
|
static Object |
JythonScript.evaluate(org.python.core.PyCode pyCode,
Object... args)
Evaluates the given Jython script, returning the result as it's equivalent Java type.
|
static Object |
JythonScript.evaluate(String scriptPath,
Object... args)
Evaluates the Jython script at the given
scriptPath, returning the result as its equivalent Java type. |
static Object |
JythonScript.evaluate(URL scriptUrl,
Object... args)
Evaluates the Jython script at the given
scriptUrl, returning the result as its equivalent Java type. |
static void |
JythonScript.execute(File scriptFile,
Object... args)
Executes the given Jython script with optional arguments passed to the script at runtime.
|
static void |
JythonScript.execute(InputStream inputStream,
Object... args)
Executes the given Jython script with optional arguments passed to the script at runtime.
|
static void |
JythonScript.execute(org.python.core.PyCode pyCode,
Object... args)
Executes the given Jython script with optional arguments passed to the script at runtime.
|
static void |
JythonScript.execute(String scriptPath,
Object... args)
Executes the Jython script at the given
scriptPath with optional arguments passed to the script at
runtime. |
static void |
JythonScript.execute(URL scriptUrl,
Object... args)
Executes the Jython script at the given
scriptUrl with optional arguments passed to the script at
runtime. |
| Modifier and Type | Class and Description |
|---|---|
class |
JythonResultNotFoundException
Thrown when the result of an evaluated Jython script cannot be found.
|
class |
JythonScriptNotFoundException
Thrown when a given Jython script (represented as a
String, File, or InputStream) cannot be
located on the host system. |
Copyright © 2017. All rights reserved.