| java.lang.Object com.google.gwt.dev.shell.JavaScriptHost
JavaScriptHost | public class JavaScriptHost (Code) | | This class contains a set of static methods that can be used to interact with
the browser in hosted mode.
|
Method Summary | |
public static void | createNative(String file, int line, String jsniSignature, String[] paramNames, String js) Defines a new native JavaScript function. | public static void | exceptionCaught(int number, String name, String description) | public static boolean | invokeNativeBoolean(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a boolean value. | public static byte | invokeNativeByte(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a byte value. | public static char | invokeNativeChar(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a character value. | public static double | invokeNativeDouble(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a double value. | public static float | invokeNativeFloat(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a float value. | public static Object | invokeNativeHandle(String name, Object jthis, Class> returnType, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a handle value. | public static int | invokeNativeInt(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns an integer value. | public static long | invokeNativeLong(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a long value. | public static Object | invokeNativeObject(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns an object value. | public static short | invokeNativeShort(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a short value. | public static String | invokeNativeString(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns a string value. | public static void | invokeNativeVoid(String name, Object jthis, Class>[] types, Object[] args) Invoke a native JavaScript function that returns no value. | public static void | log(String message, Throwable e) Logs in dev shell. | public static T | rebindAndCreate(Class> requestedClass) Resolves a deferred binding request and create the requested object. | public static void | setHost(ShellJavaScriptHost host) This method is called via reflection from the shell, providing the hosted
mode application with all of the methods it needs to interface with the
browser and the server (for deferred binding). |
createNative | public static void createNative(String file, int line, String jsniSignature, String[] paramNames, String js)(Code) | | Defines a new native JavaScript function.
Parameters: file - source file of the function Parameters: line - starting line number of the function Parameters: jsniSignature - the function's jsni signature Parameters: paramNames - the parameter types Parameters: js - the script body |
exceptionCaught | public static void exceptionCaught(int number, String name, String description)(Code) | | |
invokeNativeBoolean | public static boolean invokeNativeBoolean(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a boolean value.
|
invokeNativeByte | public static byte invokeNativeByte(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a byte value.
|
invokeNativeChar | public static char invokeNativeChar(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a character value.
|
invokeNativeDouble | public static double invokeNativeDouble(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a double value.
|
invokeNativeFloat | public static float invokeNativeFloat(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a float value.
|
invokeNativeInt | public static int invokeNativeInt(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns an integer value.
|
invokeNativeLong | public static long invokeNativeLong(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a long value.
|
invokeNativeShort | public static short invokeNativeShort(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns a short value.
|
invokeNativeVoid | public static void invokeNativeVoid(String name, Object jthis, Class>[] types, Object[] args) throws Throwable(Code) | | Invoke a native JavaScript function that returns no value.
|
rebindAndCreate | public static T rebindAndCreate(Class> requestedClass)(Code) | | Resolves a deferred binding request and create the requested object.
|
setHost | public static void setHost(ShellJavaScriptHost host)(Code) | | This method is called via reflection from the shell, providing the hosted
mode application with all of the methods it needs to interface with the
browser and the server (for deferred binding).
|
|
|