Class Runner
- java.lang.Object
-
- org.htmlunit.corejs.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[]argsprivate Functionf(package private) ContextFactoryfactoryprivate Scriptsprivate Scriptablescope
-
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 voidrun()java.lang.Objectrun(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:
runin interfacejava.lang.Runnable
-
run
public java.lang.Object run(Context cx)
Description copied from interface:ContextActionExecute action using the supplied Context instance. When Rhino runtime calls the method,cxwill be associated with the current thread as active context.- Specified by:
runin interfaceContextAction<java.lang.Object>- See Also:
ContextFactory.call(ContextAction)
-
-