| java.lang.Object com.google.gwt.dev.shell.ModuleSpace
All known Subclasses: com.google.gwt.dev.shell.mac.ModuleSpaceSaf, com.google.gwt.dev.shell.ie.ModuleSpaceIE6, com.google.gwt.dev.shell.moz.ModuleSpaceMoz,
ModuleSpace | abstract public class ModuleSpace implements ShellJavaScriptHost(Code) | | The interface to the low-level browser, this class serves as a 'domain' for a
module, loading all of its classes in a separate, isolated class loader. This
allows us to run multiple modules, both in succession and simultaneously.
|
Method Summary | |
protected static RuntimeException | createJavaScriptException(ClassLoader cl, String name, String desc) | protected String | createNativeMethodInjector(String jsniSignature, String[] paramNames, String js) | public void | dispose() | abstract protected JsValue | doInvoke(String name, Object jthis, Class>[] types, Object[] args) Invokes a native JavaScript function. | public void | exceptionCaught(int number, String name, String message) | protected CompilingClassLoader | getIsolatedClassLoader() | public Object | getKey() Get the unique key for this module. | protected static TreeLogger | getLogger() | public String | getModuleName() Get the module name. | abstract protected Object | getStaticDispatcher() Injects the magic needed to resolve JSNI references from module-space. | final protected JsValue | invokeNative(String name, Object jthis, Class>[] types, Object[] args) Invokes a native JavaScript function. | public boolean | invokeNativeBoolean(String name, Object jthis, Class>[] types, Object[] args) | public byte | invokeNativeByte(String name, Object jthis, Class>[] types, Object[] args) | public char | invokeNativeChar(String name, Object jthis, Class>[] types, Object[] args) | public double | invokeNativeDouble(String name, Object jthis, Class>[] types, Object[] args) | public float | invokeNativeFloat(String name, Object jthis, Class>[] types, Object[] args) | public Object | invokeNativeHandle(String name, Object jthis, Class> returnType, Class>[] types, Object[] args) | public int | invokeNativeInt(String name, Object jthis, Class>[] types, Object[] args) | public long | invokeNativeLong(String name, Object jthis, Class>[] types, Object[] args) | public Object | invokeNativeObject(String name, Object jthis, Class>[] types, Object[] args) | public short | invokeNativeShort(String name, Object jthis, Class>[] types, Object[] args) | public String | invokeNativeString(String name, Object jthis, Class>[] types, Object[] args) | public void | invokeNativeVoid(String name, Object jthis, Class>[] types, Object[] args) | protected boolean | isExceptionSame(Throwable original, int number, String name, String message) | public void | log(String message, Throwable e) Allows client-side code to log to the tree logger. | final public void | onLoad(TreeLogger logger) Runs the module's user startup code. | protected String | rebind(String sourceName) | public Object | rebindAndCreate(String requestedClassName) | public static void | setThrownJavaException(Throwable t) |
dispose | public void dispose()(Code) | | |
doInvoke | abstract protected JsValue doInvoke(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invokes a native JavaScript function.
Parameters: name - the name of the function to invoke Parameters: jthis - the function's 'this' context Parameters: types - the type of each argument Parameters: args - the arguments to be passed the return value as a Variant. |
getKey | public Object getKey()(Code) | | Get the unique key for this module.
the unique key |
getModuleName | public String getModuleName()(Code) | | Get the module name.
the module name |
getStaticDispatcher | abstract protected Object getStaticDispatcher()(Code) | | Injects the magic needed to resolve JSNI references from module-space.
|
invokeNative | final protected JsValue invokeNative(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invokes a native JavaScript function.
Parameters: name - the name of the function to invoke Parameters: jthis - the function's 'this' context Parameters: types - the type of each argument Parameters: args - the arguments to be passed the return value as a Variant. |
setThrownJavaException | public static void setThrownJavaException(Throwable t)(Code) | | |
|
|