Functions -
java
| createNull | Returns a |
| fromString | Returns a |
| getClass | Returns a This function performs a Java name output boolean the Java Class instance representing the Java primitive type boolean byte the Java Class instance representing the Java primitive type byte char the Java Class instance representing the Java primitive type char short the Java Class instance representing the Java primitive type short int the Java Class instance representing the Java primitive type int long the Java Class instance representing the Java primitive type long float the Java Class instance representing the Java primitive type float double the Java Class instance representing the Java primitive type double |
| isNull | Returns |
| toString | Returns a Ballerina If the |
Returns a handle that refers to Java null.
-
Return Type
(handle) the
handlethat refers to Java null
Returns a handle that refers to the Java string representation of the Ballerina string.
Parameters
- value string
-
the Ballerina
stringwith which thehandleis created
-
Return Type
(handle) the
handlethat refers to the Java String representation of the Ballerinastring
Returns a handle that refers to the Java Class object associated
with the class or interface with the given string name.
This function performs a Java class.forName(name) except for following cases:
name output boolean the Java Class instance representing the Java primitive type boolean byte the Java Class instance representing the Java primitive type byte char the Java Class instance representing the Java primitive type char short the Java Class instance representing the Java primitive type short int the Java Class instance representing the Java primitive type int long the Java Class instance representing the Java primitive type long float the Java Class instance representing the Java primitive type float double the Java Class instance representing the Java primitive type double
Parameters
- name string
-
the name of the Java class
-
Return Type
(handle | error) the Java Class object for the class with the given name.
Returns true if this handle refers to Java null.
Parameters
- value handle
-
the
handlewhose referred value to be tested with Java null
-
Return Type
(boolean) trueif this handle refers to Java null
Returns a Ballerina string representation of the Java object referred by the handle.
If the handle refers to Java null, then this function returns a nil value.
Parameters
- value handle
-
the
handlewhose referred value to be converted to Ballerinastring
-
Return Type
(string?) the Ballerina
stringrepresentation of the Java object referred by thehandleor returnsnilof thehandlerefers to Java null