JSup - Forlani

JSup JavaCode functions (Bozza)

A JavaCode function is a Java static function link written in JavaCode (so it can directly refer to tags, security group, alarm groups, windows) that can be called from other JavaCode script and even from Math code.

It can reduce code duplication when some piece of code is needed from many script.

A JavaCode function can be defined in the following three scope:


Here is an example of a JavaCode function definition dialog:

/img/JSup/JavaCodeFunction-example1.png


Here is an example of a curly brackets JavaCode function that defines a class and methods, like a library:

/img/JSup/JavaCodeFunction-example2.png