public interface IJavascriptRuntime
Modifier and Type | Method and Description |
---|---|
netscape.javascript.JSObject |
execute(String command)
Execute the specified command returning a value (if any)
|
String |
getArrayConstructor(String javascriptObjectType,
Object[] ary)
Gets an array parameter constructor as a String, which then can be
passed to the execute() method.
|
String |
getArrayFunction(String function,
Object[] ary)
Gets an array function as a String, which then can be passed to the
execute() method.
|
String |
getConstructor(String javascriptObjectType,
Object... args)
Gets a constructor as a string which then can be passed to the execute().
|
String |
getFunction(String function,
Object... args)
Gets a function as a String, which then can be passed to the
execute() method.
|
String |
getFunction(String variable,
String function,
Object... args)
Gets a function as a String, which then can be passed to the
execute() method.
|
netscape.javascript.JSObject execute(String command)
command
- The JavaScript command to executeString getConstructor(String javascriptObjectType, Object... args)
javascriptObjectType
- The type of JavaScript object to createargs
- The args of the constructorString getArrayConstructor(String javascriptObjectType, Object[] ary)
javascriptObjectType
- type The type of JavaScript object array to createary
- The array elementsString getFunction(String variable, String function, Object... args)
variable
- The variable to invoke the function on.function
- The function to invokeargs
- Arguments the function requiresString getFunction(String function, Object... args)
function
- The function to invokeargs
- Arguments the function requiresString getArrayFunction(String function, Object[] ary)
function
- The function to invokeary
- The array of arguments to pass to the function.Copyright © 2016. All Rights Reserved.