| com.google.gwt.dev.shell.ShellJavaScriptHost
All known Subclasses: com.google.gwt.dev.shell.ModuleSpace,
ShellJavaScriptHost | public interface ShellJavaScriptHost (Code) | | This interface contains all of the methods that must be exposed to a hosted
mode application via its JavaScriptHost class. JavaScriptHost contains a
method called setHost() that must be called when a new application is
initialized.
This interface works with JavaScriptHost to keep running applications at
arms-length via an isolated class loader (this requires that there be no
explicit dependencies between the shell and any client-side classes).
|
Method Summary | |
abstract void | createNative(String file, int line, String name, String[] paramNames, String js) Defines a new native JavaScript function. | abstract void | exceptionCaught(int number, String name, String description) Call this when a JavaScript exception is caught. | abstract boolean | invokeNativeBoolean(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a boolean value. | abstract byte | invokeNativeByte(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a byte value. | abstract char | invokeNativeChar(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a character value. | abstract double | invokeNativeDouble(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a double value. | abstract float | invokeNativeFloat(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a float value. | abstract Object | invokeNativeHandle(String name, Object jthis, Class> returnType, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a handle value. | abstract int | invokeNativeInt(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns an integer value. | abstract long | invokeNativeLong(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a long value. | abstract Object | invokeNativeObject(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns an object value. | abstract short | invokeNativeShort(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a short value. | abstract String | invokeNativeString(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a string value. | abstract void | invokeNativeVoid(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns no value. | abstract void | log(String message, Throwable e) Logs to the dev shell logger. | abstract T | rebindAndCreate(String requestedTypeName) Resolves a deferred binding request and create the requested object. |
createNative | abstract void createNative(String file, int line, String name, String[] paramNames, String js)(Code) | | Defines a new native JavaScript function.
Parameters: name - the function's name, usually a JSNI signature Parameters: paramNames - parameter names Parameters: js - the script body |
exceptionCaught | abstract void exceptionCaught(int number, String name, String description)(Code) | | Call this when a JavaScript exception is caught.
|
invokeNativeBoolean | abstract boolean invokeNativeBoolean(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a boolean value.
|
invokeNativeByte | abstract byte invokeNativeByte(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a byte value.
|
invokeNativeChar | abstract char invokeNativeChar(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a character value.
|
invokeNativeDouble | abstract double invokeNativeDouble(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a double value.
|
invokeNativeFloat | abstract float invokeNativeFloat(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a float value.
|
invokeNativeInt | abstract int invokeNativeInt(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns an integer value.
|
invokeNativeLong | abstract long invokeNativeLong(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a long value.
|
invokeNativeShort | abstract short invokeNativeShort(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a short value.
|
|
|