Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

java

🌌fuzion.java

fuzion.java -- unit type grouping low-level helpers for Java interface

A Java array

intrinsic to get an element of a Java array of arbitrary type

intrinsic to get the length of a Java array of arbitrary type

convert a Sequence to a Java Array object

intrinsic to convert an array to a Java Array object

intrinsic to convert a bool to a Java Boolean object

intrinsic to call given Java constructor

§  callConstructor<T>(T Object, className string, signature string, args array<fuzion.java.JavaObject>)
 => 
T
:
Object

Call a Java constructor with given signature for class with given name
with given arguments

intrinsic to call given Java static method

§  callStatic<T>(T Object, className string, name string, signature string, args array<fuzion.java.JavaObject>)
 => 
T
:
Object

Call a static Java method with given name and signature with given
arguments

intrinsic to call given Java instance method

§  callVirtual<T>(T Object, className string, name string, signature string, thiz fuzion.java.JavaObject, args array<fuzion.java.JavaObject>)
 => 
T
:
Object

Call a virtual Java method className.name with given signature signature
on instance thiz with given arguments

intrinsic to convert an f32 to a Java Float object

intrinsic to convert a f64 to a Java Double object

read a field of given name from given object instance thiz. Wrap result into
an instance of T.

intrinsic to read instance field

§  getStaticField<T>(T Object, clazz string, field string)
 => 
T
:
Object

read a static field of given name in class with given name. Wrap result into
an instance of T.

intrinsic to read static field

intrinsic to convert an i16 to a Java Short object

intrinsic to convert an i32 to a Java Integer object

intrinsic to convert an i64 to a Java Long object

intrinsic to convert an i8 to a Java Byte object

A Java reference

Java's 'java.lang.String' type

convert a Java String to a stirng

Java's 'void' type (which is used in Java like Fuzion's 'unit' type').

convert a string to a Java String object

intrinsic to convert a string to a Java String object

intrinsic to convert an u16 to a Java Character object