|
Lisp API Documentation
Functions defined in package
jacol:
JVM-FETCH
Arguments: (object)
Description:
Return a string representation of an object stored in the JVM.
Example: (jvm-fetch (jvm-create "java.util.Date"))
==> Wed Dec 12 14:11:12 MST 2001
JVM-CALL
Arguments: (object method &key static return arguments invoke)
Description:
Call a method in a Java class or instance.
Parameters:
static - t if the class being called is static
return - specify the return type, which can be one of :int, :long,
:boolean, :string, :float, :double, :float. If this is
not specified a string will be returned representing the
key of the object in the JVM.
arguments - a list of string pairs. The first string in the pair
represents the value, the second represents the Java
type. The type can be int, long, boolean, float, double,
String, object, or Object. Object refers to
java.lang.Object, object indicates that the value is
the key of an object instance stored in the JVM.
invoke - t if the method is being invoked on an object instance
(i.e., "object" is the key of an object stored in the JVM)
JVM-GET-STATIC-FIELD
Arguments: (classname fieldname)
Description:
Retrieve a static field from classname. The key of the object stored
in the JVM will be returned.
JVM-GET-INSTANCE-FIELD
Arguments: (object fieldname)
Description:
Retrieve a field from an object instance. The key of the object
stored in the JVM will be returned.
JVM-DELETE
Arguments: (object)
Description:
"object" refers to an object stored in the JVM. After calling this
function, the object can no longer be referenced and is a candidate for
garbage collection.
JVM-SHUTDOWN
Arguments: ()
Description:
Cleanly shutdown jacol, including Java processes.
JVM-CREATE
Arguments: (classname &rest args)
Description:
Create an instance of classname. Return a string identifier
that can be passed as a parameter to subsequent method calls
to refer to this object.
Any arguments after classname are passed as parameters to the
Java constructor. They must occur in pairs, value followed by
type.
Example: (jvm-create "java.lang.Integer" "560" "String")
|