public class HtmlUnitContextFactory
extends org.mozilla.javascript.ContextFactory
| Constructor and Description |
|---|
HtmlUnitContextFactory(org.apache.commons.logging.Log log)
Create a new instance of HtmlUnitContextFactory
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doTopCall(org.mozilla.javascript.Callable callable,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
Object[] args) |
static boolean |
getDebuggerEnabled()
Returns true if the debugger is enabled, false otherwise.
|
static long |
getTimeout()
Returns the number of milliseconds a script is allowed to execute before
being terminated.
|
protected boolean |
hasFeature(org.mozilla.javascript.Context cx,
int featureIndex) |
protected org.mozilla.javascript.Context |
makeContext() |
protected void |
observeInstructionCount(org.mozilla.javascript.Context cx,
int instructionCount)
Run-time calls this when instruction counting is enabled and the counter
reaches limit set by setInstructionObserverThreshold().
|
static void |
setDebuggerEnabled(boolean enabled)
Enables or disables the debugger, which logs stack entries and exceptions.
|
static void |
setTimeout(long timeout)
Set the number of milliseconds a script is allowed to execute before
being terminated.
|
addListener, call, checkNotSealed, createClassLoader, enter, enter, exit, getApplicationClassLoader, getE4xImplementationFactory, getGlobal, hasExplicitGlobal, initApplicationClassLoader, initGlobal, isSealed, onContextCreated, onContextReleased, removeListener, sealpublic HtmlUnitContextFactory(org.apache.commons.logging.Log log)
log - the log that the error reporter should usepublic static void setTimeout(long timeout)
timeout - the timeout valuepublic static long getTimeout()
public static void setDebuggerEnabled(boolean enabled)
enabled - whether or not the debugger should be enabledDebuggerImpl,
DebugFrameImplpublic static boolean getDebuggerEnabled()
DebuggerImpl,
DebugFrameImplprotected org.mozilla.javascript.Context makeContext()
makeContext in class org.mozilla.javascript.ContextFactoryprotected void observeInstructionCount(org.mozilla.javascript.Context cx,
int instructionCount)
observeInstructionCount in class org.mozilla.javascript.ContextFactorycx - the context calling usinstructionCount - amount of script instruction executed since last call to observeInstructionCountprotected Object doTopCall(org.mozilla.javascript.Callable callable, org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, Object[] args)
doTopCall in class org.mozilla.javascript.ContextFactoryprotected boolean hasFeature(org.mozilla.javascript.Context cx,
int featureIndex)
hasFeature in class org.mozilla.javascript.ContextFactoryCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.