Changes between Version 2 and Version 3 of JavaFfi


Ignore:
Timestamp:
07/15/10 23:32:05 (12 years ago)
Author:
mseddon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JavaFfi

    v2 v3  
    3333=== `register-java-exception` ''exception-name condition-symbol'' => `T` or `NIL` ===
    3434
     35Registers the Java Throwable ''exception-name'' as the condition designated by ''condition-symbol''.
     36
    3537=== `unregister-java-exception` ''exception-name'' => `T` or `NIL` ===
    3638
    37 === `jclass` ''name-or-class-ref'' => ''class-ref'' ===
     39Unregisters the Java Throwable ''exception-name'' previously registered by `register-java-exception`.
    3840
    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
     43Returns 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.
    4044
    4145=== `jfield` ''class-ref-or-field field-or-instance'' &optional ''instance value'' ===
     
    6367=== `jconstructor` ''class-ref'' &rest ''parameter-class-refs'' => ''constructor-ref'' ===
    6468
     69Returns a reference to the Java constructor of ''class-ref'' with the given ''parameter-class-refs''.
     70
    6571=== `jmethod` ''class-ref method-name'' &rest ''parameter-class-refs'' => ''method-ref'' ===
     72
     73Returns a reference to the Java method ''method-name'' of ''class-ref'' with the given ''parameter-class-refs''.
    6674
    6775=== `jstatic` ''method-ref class-ref'' &rest ''args'' => ''result'' ===
    6876=== `jstatic-raw` ''method-ref class-ref'' &rest ''args'' ''result'' ===
    6977
    70 === `jnew` ''constructor-ref'' &rest ''args'' => ''object'' ===
     78=== `jnew` ''constructor'' &rest ''args'' => ''object'' ===
     79
     80Invokes the Java constructor ''constructor'' with the arguments ''args''
    7181
    7282=== `jnew-array` ''element-type'' &rest ''dimensions'' => ''array-object'' ===
    7383
     84Creates a new Java array of type ''element-type'', with the given ''dimensions''.
     85
    7486=== `jarray-ref` ''java-array'' &rest ''indices'' => ''object'' ===
     87
     88Dereference the Java array ''java-array'' using the given ''indices'', coercing the result into a Lisp type, if possible.
     89
    7590=== `jarray-ref-raw` ''java-array'' &rest ''indices'' => ''object'' ===
     91
     92Dereference the Java array ''java-array'' using the given ''indices''.  Does not attempt to coerce the result into a Lisp type.
    7693
    7794=== `jarray-set` ''java-array new-value'' &rest ''indices'' => ''new-value'' ===
     
    92109Returns the Lisp object corresponding to (wrapping?) the JavaObject. I.e. `return JavaObject.getInstance(arg.javaInstance(), true);`
    93110
     111=== `jcoerce` ''object'' ''intended-class'' => ''java-object'' ===
     112
     113Attempts to coerce ''object'' into a JavaObject of class ''intended-class''.  Raises a `type-error` if no conversion is possible.
     114
    94115=== `%jget-property-value` ''java-object property-name'' ===
    95116
     
    99120
    100121Use `(setf jproperty-value)` instead.
     122
     123=== `jrun-exception-protected` ''closure'' ===