Changeset 4567
- Timestamp:
- 10/29/03 09:24:49 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/lisp/Java.java
r4545 r4567 3 3 * 4 4 * Copyright (C) 2002-2003 Peter Graves 5 * $Id: Java.java,v 1.1 4 2003-10-26 14:54:32 pisoExp $5 * $Id: Java.java,v 1.15 2003-10-29 09:24:49 asimon Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 51 51 * Supported argument patterns: 52 52 * 53 * Case 1: class- namefield-name:53 * Case 1: class-ref field-name: 54 54 * to retrieve the value of a static field. 55 55 * 56 * Case 2: class- namefield-name instance-ref:56 * Case 2: class-ref field-name instance-ref: 57 57 * to retrieve the value of a class field of the instance. 58 58 * 59 * Case 3: class- namefield-name primitive-value:59 * Case 3: class-ref field-name primitive-value: 60 60 * to store primitive-value in a static field. 61 61 * 62 * Case 4: class- namefield-name instance-ref value:62 * Case 4: class-ref field-name instance-ref value: 63 63 * to store value in a class field of the instance. 64 64 * 65 * Case 5: class- namefield-name nil value:65 * Case 5: class-ref field-name nil value: 66 66 * to store value in a static field (when value may be 67 67 * confused with an instance-ref). … … 89 89 // Cases 1-5. 90 90 fieldName = LispString.getValue(args[1]); 91 className = LispString.getValue(args[0]); 92 c = Class.forName(className); 91 if (args[0] instanceof LispString) { 92 className = LispString.getValue(args[0]); 93 c = Class.forName(className); 94 } 95 else { 96 c = (Class)JavaObject.getObject(args[0]); 97 className = c.getName(); 98 } 93 99 } else { 94 100 // Cases 6 and 7.
Note: See TracChangeset
for help on using the changeset viewer.