The pre SICStus 3.8.5 method call predicates in this library use a specific form of argument lists containing conversion information so the predicates know how to convert the input arguments from Prolog datatypes to Java datatypes. This is similar to the (new) mechanism described in Conversion between Prolog Arguments and Java Types. The argument lists are standard Prolog lists containing terms on the following form:
jboolean(
X)
true
or false
, representing a
Java boolean
primitive type.
jbyte(
X)
byte
.
jchar(
X)
char
.
jdouble(
X)
double
.
jfloat(
X)
float
.
jint(
X)
int
.
jlong(
X)
long
.
jshort(
X)
short
.
jobject(
X)
jasper_new_object/5
(see Jasper Library Predicates).
jstring(
X)
String
.
If the Prolog term does not fit in the corresponding Java data
type (jbyte(4711)
, for example), the result is undefined.