|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mozilla.javascript.tools.shell.Main
public class Main
The shell program. Can execute scripts interactively or in batch mode at the command line. An example of controlling the JavaScript engine.
| Field Summary | |
|---|---|
protected static ToolErrorReporter |
errorReporter
|
protected static int |
exitCode
|
static Global |
global
|
static ShellContextFactory |
shellContextFactory
|
| Constructor Summary | |
|---|---|
Main()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
evaluateScript(net.sourceforge.htmlunit.corejs.javascript.Script script,
net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scope)
|
static int |
exec(java.lang.String[] origArgs)
Execute the given arguments, but don't System.exit at the end. |
static java.io.PrintStream |
getErr()
|
static Global |
getGlobal()
|
static java.io.InputStream |
getIn()
|
static java.io.PrintStream |
getOut()
|
static net.sourceforge.htmlunit.corejs.javascript.Script |
loadScriptFromSource(net.sourceforge.htmlunit.corejs.javascript.Context cx,
java.lang.String scriptSource,
java.lang.String path,
int lineno,
java.lang.Object securityDomain)
|
static void |
main(java.lang.String[] args)
Main entry point. |
static void |
processFile(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scope,
java.lang.String filename)
|
static java.lang.String[] |
processOptions(java.lang.String[] args)
Parse arguments. |
static void |
processSource(net.sourceforge.htmlunit.corejs.javascript.Context cx,
java.lang.String filename)
Evaluate JavaScript source. |
static void |
setErr(java.io.PrintStream err)
|
static void |
setIn(java.io.InputStream in)
|
static void |
setOut(java.io.PrintStream out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static ShellContextFactory shellContextFactory
public static Global global
protected static ToolErrorReporter errorReporter
protected static int exitCode
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static int exec(java.lang.String[] origArgs)
public static Global getGlobal()
public static java.lang.String[] processOptions(java.lang.String[] args)
public static void processSource(net.sourceforge.htmlunit.corejs.javascript.Context cx,
java.lang.String filename)
cx - the current contextfilename - the name of the file to compile, or null
for interactive mode.
public static void processFile(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scope,
java.lang.String filename)
public static net.sourceforge.htmlunit.corejs.javascript.Script loadScriptFromSource(net.sourceforge.htmlunit.corejs.javascript.Context cx,
java.lang.String scriptSource,
java.lang.String path,
int lineno,
java.lang.Object securityDomain)
public static java.lang.Object evaluateScript(net.sourceforge.htmlunit.corejs.javascript.Script script,
net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scope)
public static java.io.InputStream getIn()
public static void setIn(java.io.InputStream in)
public static java.io.PrintStream getOut()
public static void setOut(java.io.PrintStream out)
public static java.io.PrintStream getErr()
public static void setErr(java.io.PrintStream err)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||