public class SafeContext
extends org.mozilla.javascript.ContextFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
SafeContext.CountContext |
| Modifier and Type | Field and Description |
|---|---|
int |
maxInstructions |
long |
maxRuntimeInMs |
| Constructor and Description |
|---|
SafeContext() |
| Modifier and Type | Method and Description |
|---|---|
Object |
doTopCall(org.mozilla.javascript.Callable callable,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
Object[] args) |
boolean |
hasFeature(org.mozilla.javascript.Context cx,
int featureIndex) |
org.mozilla.javascript.Context |
makeContext() |
void |
observeInstructionCount(org.mozilla.javascript.Context cx,
int instructionCount) |
addListener, call, checkNotSealed, createClassLoader, enter, enterContext, enterContext, exit, getApplicationClassLoader, getE4xImplementationFactory, getGlobal, getGlobalSetter, hasExplicitGlobal, initApplicationClassLoader, initGlobal, isSealed, onContextCreated, onContextReleased, removeListener, sealpublic org.mozilla.javascript.Context makeContext()
makeContext in class org.mozilla.javascript.ContextFactorypublic boolean hasFeature(org.mozilla.javascript.Context cx,
int featureIndex)
hasFeature in class org.mozilla.javascript.ContextFactorypublic void observeInstructionCount(org.mozilla.javascript.Context cx,
int instructionCount)
observeInstructionCount in class org.mozilla.javascript.ContextFactoryCopyright © 2018. All rights reserved.