| Modifier and Type | Method and Description |
|---|---|
ContextFactory |
ContextFactory.GlobalSetter.getContextFactoryGlobal() |
ContextFactory |
Context.getFactory()
Return
ContextFactory instance used to create this Context. |
static ContextFactory |
ContextFactory.getGlobal()
Get global ContextFactory.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
Context.call(ContextFactory factory,
Callable callable,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Call
Callable.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
using the Context instance associated with the current thread. |
static Object |
JavaAdapter.callMethod(ContextFactory factory,
Scriptable thisObj,
Function f,
Object[] args,
long argsToWrap)
Utility method which dynamically binds a Context to the current thread, if none already
exists.
|
protected abstract Object |
VMBridge.getInterfaceProxyHelper(ContextFactory cf,
Class<?>[] interfaces)
Create helper object to create later proxies implementing the specified interfaces later.
|
static void |
ContextFactory.initGlobal(ContextFactory factory)
Set global ContextFactory.
|
Object |
InterfaceAdapter.invoke(ContextFactory cf,
Object target,
Scriptable topScope,
Object thisObject,
Method method,
Object[] args) |
protected abstract Object |
VMBridge.newInterfaceProxy(Object proxyHelper,
ContextFactory cf,
InterfaceAdapter adapter,
Object target,
Scriptable topScope)
Create proxy object for
InterfaceAdapter. |
void |
ContextFactory.GlobalSetter.setContextFactoryGlobal(ContextFactory factory) |
| Constructor and Description |
|---|
Context(ContextFactory factory)
Creates a new context.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
VMBridge_jdk18.getInterfaceProxyHelper(ContextFactory cf,
Class<?>[] interfaces) |
protected Object |
VMBridge_jdk18.newInterfaceProxy(Object proxyHelper,
ContextFactory cf,
InterfaceAdapter adapter,
Object target,
Scriptable topScope) |
| Modifier and Type | Method and Description |
|---|---|
static ContextFactory |
Utils.contextFactoryWithFeatures(int... features) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Exception> |
Utils.assertException(ContextFactory contextFactory,
int languageVersion,
Class<T> expectedThrowable,
String expectedMessage,
String js) |
static void |
Utils.assertWithAllModes(ContextFactory contextFactory,
int languageVersion,
String message,
Object expected,
String script)
Execute the provided script and assert the result.
|
static void |
Utils.runWithAllModes(ContextFactory contextFactory,
ContextAction<?> action)
Runs the action successively with interpreted and optimized mode
|
static void |
Utils.runWithMode(ContextFactory contextFactory,
ContextAction<?> action,
boolean interpretedMode)
Runs the provided action at the given interpretation mode
|
| Modifier and Type | Method and Description |
|---|---|
void |
Main.attachTo(ContextFactory factory)
Attaches the debugger to the given
ContextFactory. |
void |
Dim.attachTo(ContextFactory factory)
Attaches the debugger to the given ContextFactory.
|
static Main |
Main.mainEmbedded(ContextFactory factory,
ScopeProvider scopeProvider,
String title)
Entry point for embedded applications.
|
static Main |
Main.mainEmbedded(ContextFactory factory,
Scriptable scope,
String title)
Entry point for embedded applications.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ShellContextFactory |
| Modifier and Type | Method and Description |
|---|---|
void |
Global.init(ContextFactory factory) |
Copyright © 2025 HtmlUnit. All rights reserved.