| Modifier and Type | Field and Description |
|---|---|
| protected JSObject | |
| protected static int | |
| protected static Map | |
| protected IJavascriptRuntime | |
| protected String |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | JavascriptObject(String
The type of object to build type, String A string representation of the object, which can be executed by
the Javascript runtime. stringRepresentation)Builds a new JavascriptObject based on a string representation of the object. |
| protected | JavascriptObject(String
The type of underlying Javascript object to create. type, Object... Any arguments required to create the object. args)
|
| protected | JavascriptObject(String
The type of underlying Javascript object to create. type, Object[] The array to be passed in. ary, boolean boolean to indicate the an array is to be used as the parameter
rather than breaking up into individual parameters. isArray)
|
| protected | JavascriptObject(String
Type of Javascript object to create. type, JSObject Object returned from Javascript. jsObject)
References Deprecated
JSObject is deprecated or references (maybe indirectly) at least one deprecated element.
Wraps a Javascript JSObject returned from a function. |
| Modifier and Type | Method and Description |
|---|---|
| protected Boolean | Returns: The actual value, or if null, returns false.The value from Javascript to be checked. val, Boolean The default return value, which can be null. def)Checks a returned Javascript value where we expect a boolean but could get null. |
| protected Integer | |
| protected Object | Returns: Either null or the value passed in.The value from Javascript to be checked. val)JSObject will return the String "undefined" at certain times, so we need to make sure we're not getting a value that looks valid, but isn't. |
| public JSObject | Returns: The underlying Javascript object
References Deprecated
JSObject is deprecated or references (maybe indirectly) at least one deprecated element.
Get the underlying object used by the Javascript runtime. |
| protected final String | Returns: The name of the next variable to createGets the name of the next variable which will be the objectname plus a unique number |
| protected Object | Returns: The value of the propertyThe property name key)Get the specified property for this object. |
| protected <T> T | Returns: The value of the propertyThe property name key, Class<T> The property type type)Gets the property and casts to the appropriate type |
| public String | Returns: The name of this variable.Gets the name of this variable within the Javascript runtime |
| protected Object | Returns: The return value of the function call.The function to invoke function)Invokes a JavaScript function that takes no arguments. |
| protected Object | Returns: The result of the function.The function to invoke function, Object... Any arguments to pass to the function args)Invoke the specified JavaScript function in the JavaScript runtime. |
| protected <T> T | Returns: The result of the function.The function to invoke function, Class<T> The type of object to return returnType)Invokes a JavaScript function that takes no arguments. |
| protected <T> T | Returns: The result of the function.The function to invoke function, Class<T> The type of object to return returnType, Object... Any arguments to pass to the function args)Invoke the specified JavaScript function in the JavaScript runtime. |
| protected boolean | |
| protected void | setProperty(String
The property name propertyName, Object The property value. propertyValue)Sets a property on this Javascript object. |
| protected void | setProperty(String
The name of the property. propertyName, JavascriptObject The value of the property. propertyValue)Sets a property on this Javascript object for which the value is a Javascript object itself. |
| protected void | setProperty(String
The name of the property. propertyName, JavascriptEnum The value of the property. propertyValue)Sets a property on this Javascript object for which the value is a JavascriptEnum The value is set to what is returned by the getEnumValue() method on the JavascriptEnum |
| jsObject | back to summary |
|---|---|
| protected JSObject jsObject
References Deprecated
See corresponding docs for further information. | |
| objectCounter | back to summary |
|---|---|
| protected static int objectCounter | |
| peerRegistry | back to summary |
|---|---|
| protected static Map<JSObject, JavascriptObject> peerRegistry | |
| runtime | back to summary |
|---|---|
| protected IJavascriptRuntime runtime | |
| variableName | back to summary |
|---|---|
| protected String variableName | |
| JavascriptObject | back to summary |
|---|---|
| protected JavascriptObject() | |
| JavascriptObject | back to summary |
|---|---|
protected JavascriptObject(String type)
| |
| JavascriptObject | back to summary |
|---|---|
| protected JavascriptObject(String type, String stringRepresentation) Builds a new JavascriptObject based on a string representation of the object. This is useful when constructing functions as objects | |
| JavascriptObject | back to summary |
|---|---|
| protected JavascriptObject(String type, Object... args) | |
| JavascriptObject | back to summary |
|---|---|
| protected JavascriptObject(String type, Object[] ary, boolean isArray) | |
| JavascriptObject | back to summary |
|---|---|
| protected JavascriptObject(String type, JSObject jsObject)
References Deprecated
See corresponding docs for further information. Wraps a Javascript JSObject returned from a function. | |
| checkBoolean | back to summary |
|---|---|
| protected Boolean checkBoolean(Object val, Boolean def) Checks a returned Javascript value where we expect a boolean but could get null. | |
| checkInteger | back to summary |
|---|---|
| protected Integer checkInteger(Object val, Integer def) | |
| checkUndefined | back to summary |
|---|---|
| protected Object checkUndefined(Object val) JSObject will return the String "undefined" at certain times, so we need to make sure we're not getting a value that looks valid, but isn't. | |
| getJSObject | back to summary |
|---|---|
| public JSObject getJSObject()
References Deprecated
See corresponding docs for further information. Get the underlying object used by the Javascript runtime.
| |
| getNextVariableName | back to summary |
|---|---|
| protected final String getNextVariableName() Gets the name of the next variable which will be the objectname plus a unique number
| |
| getProperty | back to summary |
|---|---|
| protected Object getProperty(String key) Get the specified property for this object. | |
| getProperty | back to summary |
|---|---|
| protected <T> T getProperty(String key, Class<T> type) Gets the property and casts to the appropriate type | |
| getVariableName | back to summary |
|---|---|
| public String getVariableName() Gets the name of this variable within the Javascript runtime
| |
| invokeJavascript | back to summary |
|---|---|
| protected Object invokeJavascript(String function) Invokes a JavaScript function that takes no arguments. | |
| invokeJavascript | back to summary |
|---|---|
| protected Object invokeJavascript(String function, Object... args) Invoke the specified JavaScript function in the JavaScript runtime. | |
| invokeJavascriptReturnValue | back to summary |
|---|---|
| protected <T> T invokeJavascriptReturnValue(String function, Class<T> returnType) Invokes a JavaScript function that takes no arguments. | |
| invokeJavascriptReturnValue | back to summary |
|---|---|
| protected <T> T invokeJavascriptReturnValue(String function, Class<T> returnType, Object... args) Invoke the specified JavaScript function in the JavaScript runtime. | |
| isMemberDefined | back to summary |
|---|---|
| protected boolean isMemberDefined(String member) | |
| setProperty | back to summary |
|---|---|
| protected void setProperty(String propertyName, Object propertyValue) Sets a property on this Javascript object. | |
| setProperty | back to summary |
|---|---|
| protected void setProperty(String propertyName, JavascriptObject propertyValue) Sets a property on this Javascript object for which the value is a Javascript object itself.
| |
| setProperty | back to summary |
|---|---|
| protected void setProperty(String propertyName, JavascriptEnum propertyValue) Sets a property on this Javascript object for which the value is a JavascriptEnum The value is set to what is returned by the getEnumValue() method on the JavascriptEnum
| |