public class RingoContextFactory
extends org.mozilla.javascript.ContextFactory
| Constructor and Description |
|---|
RingoContextFactory(RhinoEngine engine,
RingoConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
hasFeature(org.mozilla.javascript.Context cx,
int featureIndex) |
protected void |
observeInstructionCount(org.mozilla.javascript.Context cx,
int instructionCount)
Implementation of
Context.observeInstructionCount(int instructionCount). |
protected void |
onContextCreated(org.mozilla.javascript.Context cx) |
protected void |
onContextReleased(org.mozilla.javascript.Context cx) |
void |
setGeneratingDebug(boolean generatingDebug) |
void |
setLanguageVersion(int version) |
void |
setOptimizationLevel(int optimizationLevel) |
void |
setParentProtoProperties(boolean flag) |
void |
setStrictMode(boolean flag) |
void |
setWarningAsError(boolean flag) |
addListener, call, checkNotSealed, createClassLoader, doTopCall, enter, enterContext, enterContext, exit, getApplicationClassLoader, getE4xImplementationFactory, getGlobal, getGlobalSetter, hasExplicitGlobal, initApplicationClassLoader, initGlobal, isSealed, makeContext, removeListener, sealpublic RingoContextFactory(RhinoEngine engine, RingoConfig config)
protected boolean hasFeature(org.mozilla.javascript.Context cx,
int featureIndex)
hasFeature in class org.mozilla.javascript.ContextFactoryprotected void onContextCreated(org.mozilla.javascript.Context cx)
onContextCreated in class org.mozilla.javascript.ContextFactoryprotected void onContextReleased(org.mozilla.javascript.Context cx)
onContextReleased in class org.mozilla.javascript.ContextFactoryprotected void observeInstructionCount(org.mozilla.javascript.Context cx,
int instructionCount)
Context.observeInstructionCount(int instructionCount).
This can be used to customize Context without introducing
additional subclasses.observeInstructionCount in class org.mozilla.javascript.ContextFactorypublic void setStrictMode(boolean flag)
public void setParentProtoProperties(boolean flag)
public void setWarningAsError(boolean flag)
public void setLanguageVersion(int version)
public void setOptimizationLevel(int optimizationLevel)
public void setGeneratingDebug(boolean generatingDebug)
Copyright © 2016. All rights reserved.