Changeset 10255


Ignore:
Timestamp:
10/28/05 13:01:22 (16 years ago)
Author:
piso
Message:

JCLASS: documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/Java.java

    r10252 r10255  
    33 *
    44 * Copyright (C) 2002-2005 Peter Graves, Andras Simon
    5  * $Id: Java.java,v 1.57 2005-10-28 12:19:21 piso Exp $
     5 * $Id: Java.java,v 1.58 2005-10-28 13:01:22 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    4949
    5050
    51     // ### jclass
    52     private static final Primitive JCLASS = new Primitive(Symbol.JCLASS, "name")
     51    // ### jclass name-or-class-ref => class-ref
     52    private static final Primitive JCLASS =
     53        new Primitive(Symbol.JCLASS, "name-or-class-ref",
     54"Returns a reference to the Java class designated by NAME-OR-CLASS-REF.")
    5355    {
    5456        public LispObject execute(LispObject arg) throws ConditionThrowable
     
    5961
    6062    // ### jfield - retrieve or modify a field in a Java class or instance.
    61     /*
    62      * Supported argument patterns:
    63      *
    64      *   Case 1: class-ref  field-name:
    65      *               to retrieve the value of a static field.
    66      *
    67      *   Case 2: class-ref  field-name  instance-ref:
    68      *               to retrieve the value of a class field of the instance.
    69      *
    70      *   Case 3: class-ref  field-name  primitive-value:
    71      *               to store primitive-value in a static field.
    72      *
    73      *   Case 4: class-ref  field-name  instance-ref  value:
    74      *               to store value in a class field of the instance.
    75      *
    76      *   Case 5: class-ref  field-name  nil  value:
    77      *               to store value in a static field (when value may be
    78      *               confused with an instance-ref).
    79      *
    80      *   Case 6: field-name  instance:
    81      *               to retrieve the value of a field of the instance. The
    82      *               class is derived from the instance.
    83      *
    84      *   Case 7: field-name  instance  value:
    85      *               to store value in a field of the instance. The class is
    86      *               derived from the instance.
    87      */
     63    //
     64    // Supported argument patterns:
     65    //
     66    //   Case 1: class-ref  field-name:
     67    //               to retrieve the value of a static field.
     68    //
     69    //   Case 2: class-ref  field-name  instance-ref:
     70    //               to retrieve the value of a class field of the instance.
     71    //
     72    //   Case 3: class-ref  field-name  primitive-value:
     73    //               to store primitive-value in a static field.
     74    //
     75    //   Case 4: class-ref  field-name  instance-ref  value:
     76    //               to store value in a class field of the instance.
     77    //
     78    //   Case 5: class-ref  field-name  nil  value:
     79    //               to store value in a static field (when value may be
     80    //               confused with an instance-ref).
     81    //
     82    //   Case 6: field-name  instance:
     83    //               to retrieve the value of a field of the instance. The
     84    //               class is derived from the instance.
     85    //
     86    //   Case 7: field-name  instance  value:
     87    //               to store value in a field of the instance. The class is
     88    //               derived from the instance.
     89    //
    8890    private static final Primitive JFIELD =
    8991        new Primitive("jfield", PACKAGE_JAVA, true,
Note: See TracChangeset for help on using the changeset viewer.