| Modifier and Type | Field and Description |
|---|---|
| public static IWebEngine | |
| protected static IJavascriptRuntime |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JSObject | Returns: The underlying JavaScript object that was returned by the script.The JavaScript command to execute command)Implements com.
References Deprecated
JSObject is deprecated or references (maybe indirectly) at least one deprecated element.
Execute the specified command returning a value (if any) |
| protected String | Returns: A String representation of the argument.The object to convert arg)Takes the specified object and converts the argument to a String. |
| public String | Returns: A string which can be passed to the JavaScript environment to create a new array.type The type of JavaScript object array to create javascriptObjectType, Object[] The array elements ary)Implements com. Gets an array parameter constructor as a String, which then can be passed to the execute() method. |
| public String | Returns: A string which can be passed to the JavaScript environment to invoke the functionThe function to invoke function, Object[] The array of arguments to pass to the function. ary)Implements com. Gets an array function as a String, which then can be passed to the execute() method. |
| public String | Returns: A string which can be passed to the JavaScript environment to create a new object.The type of JavaScript object to create javascriptObjectType, Object... The args of the constructor args)Implements com. Gets a constructor as a string which then can be passed to the execute(). |
| public String | Returns: A string which can be passed to the JavaScript environment to invoke the functionThe variable to invoke the function on. variable, String The function to invoke function, Object... Arguments the function requires args)Implements com. Gets a function as a String, which then can be passed to the execute() method. |
| public String | Returns: A string which can be passed to the JavaScript environment to invoke the functionThe function to invoke function, Object... Arguments the function requires args)Implements com. Gets a function as a String, which then can be passed to the execute() method. |
| public static IJavascriptRuntime | Returns: A singleton instanceGets a singleton instance of this class, creating one if it doesn't yet exist. |
| public static void | setDefaultWebEngine(IWebEngine
The underlying WebEngine to use. e)Set the WebEngine that this runtime should use. |
| public static void | setJavascriptRuntime(IJavascriptRuntime
The runtime to use testRuntime)Sets a Javascript runtime to use. |
| engine | back to summary |
|---|---|
| public static IWebEngine engine | |
| runtime | back to summary |
|---|---|
| protected static IJavascriptRuntime runtime | |
| JavascriptRuntime | back to summary |
|---|---|
| public JavascriptRuntime() | |
| execute | back to summary |
|---|---|
| public JSObject execute(String command) Implements com. References Deprecated
See corresponding docs for further information. Execute the specified command returning a value (if any) | |
| getArgString | back to summary |
|---|---|
| protected String getArgString(Object arg) Takes the specified object and converts the argument to a String. | |
| getArrayConstructor | back to summary |
|---|---|
| public String getArrayConstructor(String javascriptObjectType, Object[] ary) Implements com. Gets an array parameter constructor as a String, which then can be passed to the execute() method. | |
| getArrayFunction | back to summary |
|---|---|
| public String getArrayFunction(String function, Object[] ary) Implements com. Gets an array function as a String, which then can be passed to the execute() method. | |
| getConstructor | back to summary |
|---|---|
| public String getConstructor(String javascriptObjectType, Object... args) Implements com. Gets a constructor as a string which then can be passed to the execute(). | |
| getFunction | back to summary |
|---|---|
| public String getFunction(String variable, String function, Object... args) Implements com. Gets a function as a String, which then can be passed to the execute() method. | |
| getFunction | back to summary |
|---|---|
| public String getFunction(String function, Object... args) Implements com. Gets a function as a String, which then can be passed to the execute() method. | |
| getInstance | back to summary |
|---|---|
| public static IJavascriptRuntime getInstance() Gets a singleton instance of this class, creating one if it doesn't yet exist.
| |
| setDefaultWebEngine | back to summary |
|---|---|
| public static void setDefaultWebEngine(IWebEngine e) Set the WebEngine that this runtime should use.
| |
| setJavascriptRuntime | back to summary |
|---|---|
| public static void setJavascriptRuntime(IJavascriptRuntime testRuntime) Sets a Javascript runtime to use. Should only be used by unit tests to set a mock runtime
| |