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 Details

    • scope_

      private final org.htmlunit.corejs.javascript.Scriptable scope_
    • page_

      private final HtmlPage page_
  • Constructor Details

    • HtmlUnitContextAction

      HtmlUnitContextAction(org.htmlunit.corejs.javascript.Scriptable scope, HtmlPage page)
  • Method Details

    • run

      public final Object run(org.htmlunit.corejs.javascript.Context cx)
      Specified by:
      run in interface org.htmlunit.corejs.javascript.ContextAction<Object>
    • doRun

      protected abstract Object doRun(org.htmlunit.corejs.javascript.Context cx)
    • getSourceCode

      protected abstract String getSourceCode(org.htmlunit.corejs.javascript.Context cx)