Package org.apache.camel.k.loader.jsh
Class Jsh
- java.lang.Object
-
- org.apache.camel.k.loader.jsh.Jsh
-
public final class Jsh extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearBindings()
static List<String>
compile(JShell jshell, String script)
static void
eval(JShell jshell, String snippet)
static Object
getBinding(String name)
static <T> T
getBinding(String name, Class<T> type)
static void
setBinding(String name, Object value)
static void
setBinding(JShell jshell, String name, Object value)
static <T> void
setBinding(JShell jshell, String name, T value, Class<? extends T> type)
static ExecutionControlProvider
wrapExecutionControl(String name, ExecutionControl delegate)
-
-
-
Method Detail
-
compile
public static List<String> compile(JShell jshell, String script) throws ScriptException
- Throws:
ScriptException
-
setBinding
public static void setBinding(JShell jshell, String name, Object value) throws ScriptException
- Throws:
ScriptException
-
setBinding
public static <T> void setBinding(JShell jshell, String name, T value, Class<? extends T> type) throws ScriptException
- Throws:
ScriptException
-
clearBindings
public static void clearBindings()
-
eval
public static void eval(JShell jshell, String snippet) throws ScriptException
- Throws:
ScriptException
-
wrapExecutionControl
public static ExecutionControlProvider wrapExecutionControl(String name, ExecutionControl delegate)
-
-