Jasper (Sicstus): calling Java
public class Simple{ static int simpleMethod(int value) { return value*42; }}
:- load_foreign_resource(simple).foreign(method('Simple', 'simpleMethod', [static]), java, simple(+integer,[-integer])).foreign_resource(simple, [ method('Simple', 'simpleMethod', [static]) ]).
|