Module : java
Module overview
This module provides the API for Java interoperability in Ballerina. It includes a set of Ballerina annotations with which Java constructors, methods and fields can provide implementations to Ballerina functions with external function bodies.
ArrayType | ArrayType represents a Java array type. It is used to specify parameter types in `Constructor` and `Method` annotations. |
ConstructorData | The `ConstructorData` type describes a Java constructor. If the `paramTypes` field is not specified, then parameter types are inferred from the corresponding Ballerina function. |
FieldData | The `FieldData` type describes a Java field. |
MethodData | The `MethodData` type describes a Java method. If the `paramTypes` field is not specified, then parameter types are inferred from the corresponding Ballerina function. |
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 |
Constructor | The The following code snippet shows an example usage of this annotation. Here, the
|
FieldGet | The |
FieldSet | The |
Method | The The following code snippet shows an example usage of this annotation. Here, the
The |