public class ScriptInstance
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ScriptInstance.DeprecatedCheker |
static interface |
ScriptInstance.ScriptValidator |
static class |
ScriptInstance.ValidationException |
Modifier and Type | Field and Description |
---|---|
protected ru.bitel.common.io.ThreadedPrintStream |
err |
protected bsh.Interpreter |
interpreter |
protected ru.bitel.common.io.ThreadedPrintStream |
out |
protected bsh.This |
thiz |
Constructor and Description |
---|
ScriptInstance(Script script) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval(java.io.PrintStream out,
java.io.PrintStream err,
java.util.Map<java.lang.String,java.lang.Object> vars) |
bsh.Interpreter |
getInterpreter() |
Script |
getScript() |
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object[] args) |
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object[] args,
java.io.PrintStream out,
java.io.PrintStream err) |
static boolean |
methodExist(Script f,
java.lang.String method) |
static java.util.Set<java.lang.String> |
methodNames(Script f) |
void |
recycle() |
java.lang.String |
toString() |
static void |
validateScript(Script f) |
protected bsh.Interpreter interpreter
protected bsh.This thiz
protected ru.bitel.common.io.ThreadedPrintStream out
protected ru.bitel.common.io.ThreadedPrintStream err
public ScriptInstance(Script script)
public static void validateScript(Script f) throws ScriptInstance.ValidationException
public static boolean methodExist(Script f, java.lang.String method)
public static java.util.Set<java.lang.String> methodNames(Script f)
public Script getScript()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object eval(java.io.PrintStream out, java.io.PrintStream err, java.util.Map<java.lang.String,java.lang.Object> vars) throws bsh.EvalError
bsh.EvalError
public java.lang.Object invoke(java.lang.String method, java.lang.Object[] args, java.io.PrintStream out, java.io.PrintStream err) throws bsh.EvalError
bsh.EvalError
public java.lang.Object invoke(java.lang.String method, java.lang.Object[] args) throws bsh.EvalError
bsh.EvalError
public bsh.Interpreter getInterpreter()
public void recycle()