Class JSFunction
java.lang.Object
com.amalgamasimulation.desktop.html.js.JSFunction
- All Implemented Interfaces:
JSConvertable
A class representing a JavaScript function that implements the
JSConvertable interface.
This class encapsulates a string representation of a JavaScript function and provides a method
to convert it to its JavaScript representation.- Author:
- Alexey Glazyrin
-
Field Summary
Fields inherited from interface com.amalgamasimulation.desktop.html.js.JSConvertable
NULL, UNDEFINED -
Constructor Summary
ConstructorsConstructorDescriptionJSFunction(String function) Constructs a newJSFunctionwith the specified JavaScript function string. -
Method Summary
-
Constructor Details
-
JSFunction
Constructs a newJSFunctionwith the specified JavaScript function string.- Parameters:
function- the string representation of the JavaScript function
-
-
Method Details
-
toJS
Description copied from interface:JSConvertableConverts the object to a JavaScript string representation.- Specified by:
toJSin interfaceJSConvertable- Returns:
- the JavaScript representation of the object
-