Changes between Version 2 and Version 3 of JavaFfi
- Timestamp:
- 07/15/10 23:32:05 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JavaFfi
v2 v3 33 33 === `register-java-exception` ''exception-name condition-symbol'' => `T` or `NIL` === 34 34 35 Registers the Java Throwable ''exception-name'' as the condition designated by ''condition-symbol''. 36 35 37 === `unregister-java-exception` ''exception-name'' => `T` or `NIL` === 36 38 37 === `jclass` ''name-or-class-ref'' => ''class-ref'' === 39 Unregisters the Java Throwable ''exception-name'' previously registered by `register-java-exception`. 38 40 39 Returns a reference to the Java class designated by ''name-or-class-ref''. 41 === `jclass` ''name-or-class-ref'' &optional ''class-loader'' => ''class-ref'' === 42 43 Returns a reference to the Java class designated by ''name-or-class-ref''. If the ''class-loader'' parameter is passed, the class is resolved with respect to the given ClassLoader. 40 44 41 45 === `jfield` ''class-ref-or-field field-or-instance'' &optional ''instance value'' === … … 63 67 === `jconstructor` ''class-ref'' &rest ''parameter-class-refs'' => ''constructor-ref'' === 64 68 69 Returns a reference to the Java constructor of ''class-ref'' with the given ''parameter-class-refs''. 70 65 71 === `jmethod` ''class-ref method-name'' &rest ''parameter-class-refs'' => ''method-ref'' === 72 73 Returns a reference to the Java method ''method-name'' of ''class-ref'' with the given ''parameter-class-refs''. 66 74 67 75 === `jstatic` ''method-ref class-ref'' &rest ''args'' => ''result'' === 68 76 === `jstatic-raw` ''method-ref class-ref'' &rest ''args'' ''result'' === 69 77 70 === `jnew` ''constructor-ref'' &rest ''args'' => ''object'' === 78 === `jnew` ''constructor'' &rest ''args'' => ''object'' === 79 80 Invokes the Java constructor ''constructor'' with the arguments ''args'' 71 81 72 82 === `jnew-array` ''element-type'' &rest ''dimensions'' => ''array-object'' === 73 83 84 Creates a new Java array of type ''element-type'', with the given ''dimensions''. 85 74 86 === `jarray-ref` ''java-array'' &rest ''indices'' => ''object'' === 87 88 Dereference the Java array ''java-array'' using the given ''indices'', coercing the result into a Lisp type, if possible. 89 75 90 === `jarray-ref-raw` ''java-array'' &rest ''indices'' => ''object'' === 91 92 Dereference the Java array ''java-array'' using the given ''indices''. Does not attempt to coerce the result into a Lisp type. 76 93 77 94 === `jarray-set` ''java-array new-value'' &rest ''indices'' => ''new-value'' === … … 92 109 Returns the Lisp object corresponding to (wrapping?) the JavaObject. I.e. `return JavaObject.getInstance(arg.javaInstance(), true);` 93 110 111 === `jcoerce` ''object'' ''intended-class'' => ''java-object'' === 112 113 Attempts to coerce ''object'' into a JavaObject of class ''intended-class''. Raises a `type-error` if no conversion is possible. 114 94 115 === `%jget-property-value` ''java-object property-name'' === 95 116 … … 99 120 100 121 Use `(setf jproperty-value)` instead. 122 123 === `jrun-exception-protected` ''closure'' ===