public static void setOut(PrintStream out) { getGlobal().setOut(out); }
public static InputStream getIn() { return getGlobal().getIn(); }
public static InputStream getIn() { return getGlobal().getIn(); }
public static PrintStream getOut() { return getGlobal().getOut(); }
public static PrintStream getErr() { return getGlobal().getErr(); }
public static void setIn(InputStream in) { getGlobal().setIn(in); }
public static PrintStream getErr() { return getGlobal().getErr(); }
public static void setErr(PrintStream err) { getGlobal().setErr(err); }
public static PrintStream getOut() { return getGlobal().getOut(); }
public static void setOut(PrintStream out) { getGlobal().setOut(out); }
public static void setIn(InputStream in) { getGlobal().setIn(in); }
public static void setOut(PrintStream out) { getGlobal().setOut(out); }
public static void setErr(PrintStream err) { getGlobal().setErr(err); }
public static void setIn(InputStream in) { getGlobal().setIn(in); }
public static void setErr(PrintStream err) { getGlobal().setErr(err); }
public static InputStream getIn() { return getGlobal().getIn(); }
public static PrintStream getOut() { return getGlobal().getOut(); }
public static PrintStream getErr() { return getGlobal().getErr(); }
synchronized void init() { if ( ! inited ) { Context c = Context.enter(); c.setOptimizationLevel( -1 ); Global g = Main.getGlobal(); g.init( c ); inited = true; } }
public Object run(Context cx) { if (type == PROCESS_FILES) { processFiles(cx, args); } else if (type == EVAL_INLINE_SCRIPT) { Script script = loadScriptFromSource(cx, scriptText, "<command>", 1, null); if (script != null) { evaluateScript(script, cx, getGlobal()); } } else { throw Kit.codeBug(); } return null; }