208209210211212213214215
try { GlobalVariable v = new GlobalVariable(interpreter, "$" + variable, interpreter.newString(value)); interpreter.defineVariable(v, Scope.GLOBAL); } catch (Throwable t) { t.printStackTrace(); throw new ScriptException(t.getMessage()); } }
218219220221222223224225
try { GlobalVariable v = new GlobalVariable(interpreter, "$" + variable, interpreter.newFixnum(value)); interpreter.defineVariable(v, Scope.GLOBAL); } catch (Throwable t) { t.printStackTrace(); throw new ScriptException(t.getMessage()); } }
228229230231232233234235
try { GlobalVariable v = new GlobalVariable(interpreter, "$" + variable, interpreter.newFloat(value)); interpreter.defineVariable(v, Scope.GLOBAL); } catch (Throwable t) { t.printStackTrace(); throw new ScriptException(t.getMessage()); } }
267268269270271272273274
interpreter.evalScriptlet(function); } } catch (Throwable t) { if (t instanceof ScriptException) throw (ScriptException) t; throw new ScriptException(t.getMessage()); } }
305306307308309310311312313
if (fixture.respondsTo("test_setup")) { try { fixture.callMethod(interpreter.getCurrentContext(), "test_setup"); } catch (Throwable t) { t.printStackTrace(); throw new ScriptException(t.getMessage()); } } }
496497498499500501502503504
} } } } catch (Throwable t) { t.printStackTrace(); throw new ScriptException(t.getMessage()); } } }