Package org.htmlunit.javascript
Class JavaScriptEngine.HtmlUnitContextAction
java.lang.Object
org.htmlunit.javascript.JavaScriptEngine.HtmlUnitContextAction
- All Implemented Interfaces:
org.htmlunit.corejs.javascript.ContextAction<Object>
- Enclosing class:
JavaScriptEngine
private abstract class JavaScriptEngine.HtmlUnitContextAction
extends Object
implements org.htmlunit.corejs.javascript.ContextAction<Object>
Facility for ContextAction usage.
ContextAction should be preferred because according to Rhino doc it
"guarantees proper association of Context instances with the current thread and is faster".
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHtmlUnitContextAction
(org.htmlunit.corejs.javascript.Scriptable scope, HtmlPage page) -
Method Summary
-
Field Details
-
scope_
private final org.htmlunit.corejs.javascript.Scriptable scope_ -
page_
-
-
Constructor Details
-
HtmlUnitContextAction
HtmlUnitContextAction(org.htmlunit.corejs.javascript.Scriptable scope, HtmlPage page)
-
-
Method Details
-
run
- Specified by:
run
in interfaceorg.htmlunit.corejs.javascript.ContextAction<Object>
-
doRun
-
getSourceCode
-