Functions -
java
createNull | Returns a |
fromString | Returns a |
getArrayElement | Returns a This function panics with a |
getArrayLength | Returns the length of the given Java array. This function panics with a |
isNull | Returns |
setArrayElement | Replaces the element at the specified index in the given Java array with the specified element. This function panics with a |
toString | Returns a Ballerina If the |
Returns a handle
that refers to Java null.
-
Return Type
(handle) the
handle
that refers to Java null
Returns a handle
that refers to the Java string representation of the Ballerina string
.
Parameters
- value string
-
the Ballerina
string
with which thehandle
is created
-
Return Type
(handle) the
handle
that refers to the Java String representation of the Ballerinastring
Returns a handle
that refers to the element at the specified index in the given Java array.
This function panics with a JavaNullReferenceError
error if the handle
refers to Java null.
Parameters
- receiver handle
-
the
handle
which referes to the Java array
- index int
-
the index of the element to be returned
-
Return Type
(handle) the
handle
that refers to the element at the specified position in the Java array
Returns the length of the given Java array.
This function panics with a JavaNullReferenceError
error if the handle
refers to Java null.
Parameters
- receiver handle
-
the
handle
which referes to the Java array
-
Return Type
(int) the length of the given Java array
Returns true
if this handle refers to Java null.
Parameters
- value handle
-
the
handle
whose referred value to be tested with Java null
-
Return Type
(boolean) true
if this handle refers to Java null
Replaces the element at the specified index in the given Java array with the specified element.
This function panics with a JavaNullReferenceError
error if the 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
handle
whose referred value to be converted to Ballerinastring
-
Return Type
(string?) the Ballerina
string
representation of the Java object referred by thehandle
or returnsnil
of thehandle
refers to Java null