ABCL doesn't need to implement all of Allegro's API.
For instance the marshalling (make-dist-object:/discard-in-java) and connection maintainence like jlinker-init: from section 2.5
 
Some macros like def-java-constructor , def-java-method  def-java-class are not present in ABCL but should not be hard to create.
 
Here is a quick list off top of head:
 
  • jdesc:  Function  (DESCRIBE-JAVA-OBJECT)
  • jarrayp:  Function  (missing trivial)
  • jarray-ref:  Function: setf can be used with this function to set values in a Java array.  (complete)
  • jarray-set:  Function: use of this function is deprecated. Use jarray-ref and setf instead.  (complete)
  • jcall:  Function  (complete)
  • jclass:  Function  (complete)
  • jclass-name:  Function  (complete)
  • jclass-of:  Function  (complete)
  • jconstructor:  Function  (complete)
  • jfield:  Function  (complete)
  • jlinker-version:  Function  (un-needed)
  • jlinker-buffer-size:  Function (un-needed)
  • jlookup:  Generic Function (missing)
  • jmethod:  Function  (complete)
  • jnew:  Function  (complete)
  • jnew-array:  Function  (complete)
  • jstatic:  Function  (complete)
  • kcons:  Function (missing trivial)
  • kmeth:  Function (missing trivial)
  • last-use:  Generic Function (missing)
  • make-dist-object:  Generic Function (un-needed)
  • make-immediate-object:  Function  (complete)
  • jnotify-lisp (missing)
  • jregister-handler (complete)
  • jquery-handler (missing)
  • def-java-to-lisp-wrapper, gen-output-lang, and gen-java-stream. (missing)
  • def-java-class can be used to define a Lisp class which corresponds to a Java class. (missing)

  •  def-java-constructor allows defining constructor functions to create instances of the classes defined with def-java-class.  (missing)

  •  The macro def-java-method can be used to define methods.(missing)

  •  def-java-static defines static methods. (missing)

  •  
     
    Though also through other parts of ABCL some things are easier to put in than others.
    And ABCL when used with ASM.JAR can create new java classes which has unlimited possiblities
     
     
     
     
    On Wed, Feb 10, 2010 at 3:22 AM, Blake McBride <blake@mcbride.name> wrote:

    I didn't realize ABCL uses Allegro's Java interface API.  Is ABCL's version complete (according to Allegro's docs)?

    Thanks.

    Blake McBride


    On Tue, Feb 9, 2010 at 10:02 PM, dmiles@users.sourceforge.net <logicmoo@gmail.com> wrote:

    #'jfield

    Arguments: class-ref-or-field field-or-instance &optional instance value

    This function retrieves or modifies a field in a Java class or instance.

    The valid argument patterns for this operation are:

    • class-ref  field-name: to retrieve the value of a static field.
    • class-ref  field-name  instance-ref: to retrieve the value of a class field of the instance.
    • class-ref  field-name  primitive-value: to store primitive-value in a static field.
    • class-ref  field-name  instance-ref  value: to store value in a class field of the instance.
    • class-ref  field-name  nil  value: to store value in a static field (when value may be confused with an instance-ref).
    • field-name  instance: to retrieve the value of a field of the instance. The class is derived from the instance.
    • field-name  instance  value: to store value in a field of the instance. The class is derived from the instance.
    See jlinker.htm for more information.
    .
     

     
    On Tue, Feb 9, 2010 at 7:15 PM, Blake McBride <blake@mcbride.name> wrote:
    Greetings,

    I know how to gain access to and execute Java methods via jmethod and jcall, however, I don't know how to get and set instance and static fields (or variables) within a Java class.  Any help would be greatly appreciated.

    BTW, I've now got a Lisp macro that maps all the methods in a Java class into a corresponding CLOS class.

    Thanks.

    Blake McBride


    _______________________________________________
    armedbear-devel mailing list
    armedbear-devel@common-lisp.net
    http://common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel