public class ModuleSpaceOOPHM extends ModuleSpace
host
Constructor and Description |
---|
ModuleSpaceOOPHM(ModuleSpaceHost msh,
String moduleName,
BrowserChannelServer channel) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanupJsValues() |
void |
createNativeMethods(TreeLogger logger,
List<JsniMethod> jsniMethods,
DispatchIdOracle dispatchIdOracle)
Define one or more JSNI methods.
|
protected void |
createStaticDispatcher(TreeLogger logger)
Create the __defineStatic method.
|
protected JsValue |
doInvoke(String name,
Object jthis,
Class<?>[] types,
Object[] args)
Invoke a JS method and return its value.
|
protected JsValue.DispatchObject |
getStaticDispatcher()
Injects the magic needed to resolve JSNI references from module-space.
|
createJavaScriptException, createJavaScriptException, createNativeMethodInjector, dispose, exceptionCaught, getIsolatedClassLoader, getLogger, getModuleName, invokeNative, invokeNativeBoolean, invokeNativeByte, invokeNativeChar, invokeNativeDouble, invokeNativeFloat, invokeNativeInt, invokeNativeLong, invokeNativeObject, invokeNativeShort, invokeNativeVoid, isExceptionSame, log, onLoad, rebind, rebindAndCreate, setThrownJavaException
public ModuleSpaceOOPHM(ModuleSpaceHost msh, String moduleName, BrowserChannelServer channel)
public void createNativeMethods(TreeLogger logger, List<JsniMethod> jsniMethods, DispatchIdOracle dispatchIdOracle)
ShellJavaScriptHost
protected void cleanupJsValues()
protected void createStaticDispatcher(TreeLogger logger)
ModuleSpace
createStaticDispatcher
in class ModuleSpace
protected JsValue doInvoke(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
doInvoke
in class ModuleSpace
name
- method name to invokejthis
- object to invoke method on, null if static methodtypes
- argument typesargs
- argument valuesThrowable
protected JsValue.DispatchObject getStaticDispatcher()
ModuleSpace
getStaticDispatcher
in class ModuleSpace
Copyright © 2018. All rights reserved.