Class Runner
- java.lang.Object
-
- org.mozilla.javascript.tools.shell.Runner
-
- All Implemented Interfaces:
java.lang.Runnable
,ContextAction<java.lang.Object>
class Runner extends java.lang.Object implements java.lang.Runnable, ContextAction<java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]
args
private Function
f
(package private) ContextFactory
factory
private Script
s
private Scriptable
scope
-
Constructor Summary
Constructors Constructor Description Runner(Scriptable scope, Function func, java.lang.Object[] args)
Runner(Scriptable scope, Script script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
java.lang.Object
run(Context cx)
Execute action using the supplied Context instance.
-
-
-
Field Detail
-
factory
ContextFactory factory
-
scope
private Scriptable scope
-
f
private Function f
-
s
private Script s
-
args
private java.lang.Object[] args
-
-
Constructor Detail
-
Runner
Runner(Scriptable scope, Function func, java.lang.Object[] args)
-
Runner
Runner(Scriptable scope, Script script)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
run
public java.lang.Object run(Context cx)
Description copied from interface:ContextAction
Execute action using the supplied Context instance. When Rhino runtime calls the method,cx
will be associated with the current thread as active context.- Specified by:
run
in interfaceContextAction<java.lang.Object>
- See Also:
ContextFactory.call(ContextAction)
-
-