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
Throwable
public static byte invokeNativeByte(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwable
public static char invokeNativeChar(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwable
public static double invokeNativeDouble(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwable
public static float invokeNativeFloat(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwable
public static int invokeNativeInt(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwable
public static long invokeNativeLong(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwable
public static Object invokeNativeObject(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwable
public static short invokeNativeShort(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwable
public static void invokeNativeVoid(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable
Throwable
public 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.