
public class JavaScriptHost extends Object
| Constructor and Description |
|---|
JavaScriptHost() |
| Modifier and Type | Method and Description |
|---|---|
static void |
exceptionCaught(Object exception) |
static boolean |
invokeNativeBoolean(String name,
Object jthis,
Class<?>[] types,
Object[] args)
Invoke a native JavaScript function that returns a boolean value.
|
static byte |
invokeNativeByte(String name,
Object jthis,
Class<?>[] types,
Object[] args)
Invoke a native JavaScript function that returns a byte value.
|
static char |
invokeNativeChar(String name,
Object jthis,
Class<?>[] types,
Object[] args)
Invoke a native JavaScript function that returns a character value.
|
static double |
invokeNativeDouble(String name,
Object jthis,
Class<?>[] types,
Object[] args)
Invoke a native JavaScript function that returns a double value.
|
static float |
invokeNativeFloat(String name,
Object jthis,
Class<?>[] types,
Object[] args)
Invoke a native JavaScript function that returns a float value.
|
static int |
invokeNativeInt(String name,
Object jthis,
Class<?>[] types,
Object[] args)
Invoke a native JavaScript function that returns an integer value.
|
static long |
invokeNativeLong(String name,
Object jthis,
Class<?>[] types,
Object[] args)
Invoke a native JavaScript function that returns a long value.
|
static Object |
invokeNativeObject(String name,
Object jthis,
Class<?>[] types,
Object[] args)
Invoke a native JavaScript function that returns an object value.
|
static short |
invokeNativeShort(String name,
Object jthis,
Class<?>[] types,
Object[] args)
Invoke a native JavaScript function that returns a short value.
|
static void |
invokeNativeVoid(String name,
Object jthis,
Class<?>[] types,
Object[] args)
Invoke a native JavaScript function that returns no value.
|
static void |
setHost(ShellJavaScriptHost host)
This method is called via reflection from the
CompilingClassLoader,
providing the hosted mode application with all of the methods it needs to
interface with the browser and the server (for deferred binding). |
public static void exceptionCaught(Object exception)
public static boolean invokeNativeBoolean(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwablepublic static byte invokeNativeByte(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwablepublic static char invokeNativeChar(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwablepublic static double invokeNativeDouble(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwablepublic static float invokeNativeFloat(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwablepublic static int invokeNativeInt(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwablepublic static long invokeNativeLong(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwablepublic static Object invokeNativeObject(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwablepublic static short invokeNativeShort(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwablepublic static void invokeNativeVoid(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwablepublic static void setHost(ShellJavaScriptHost host)
CompilingClassLoader,
providing the hosted mode application with all of the methods it needs to
interface with the browser and the server (for deferred binding).Copyright © 2018. All rights reserved.