172
|
1 |
Class subclass:#JavaClass
|
73
|
2 |
instanceVariableNames:'fullName accessFlags constantPool sourceFile binaryFilePath
|
110
|
3 |
fields initialized initValues staticFields hasUnresolvedConstants
|
|
4 |
interfaces'
|
52
|
5 |
classVariableNames:'InitialValuePerType'
|
1
|
6 |
poolDictionaries:''
|
|
7 |
category:'Java-Classes'
|
|
8 |
!
|
|
9 |
|
133
|
10 |
!JavaClass class methodsFor:'documentation'!
|
|
11 |
|
|
12 |
examples
|
|
13 |
"
|
|
14 |
(Java at:'java.util.Stack') new inspect
|
|
15 |
(Java at:'java.util.Vector') new inspect
|
|
16 |
"
|
|
17 |
! !
|
1
|
18 |
|
130
|
19 |
!JavaClass class methodsFor:'initialization'!
|
52
|
20 |
|
|
21 |
initialize
|
|
22 |
InitialValuePerType := IdentityDictionary new.
|
|
23 |
InitialValuePerType at:$B put:0.
|
|
24 |
InitialValuePerType at:$C put:0.
|
|
25 |
InitialValuePerType at:$D put:0.0.
|
|
26 |
InitialValuePerType at:$F put:0.0 asShortFloat.
|
|
27 |
InitialValuePerType at:$I put:0.
|
|
28 |
InitialValuePerType at:$J put:0.
|
|
29 |
InitialValuePerType at:$S put:0.
|
|
30 |
InitialValuePerType at:$Z put:0.
|
|
31 |
InitialValuePerType at:$L put:nil.
|
|
32 |
InitialValuePerType at:$[ put:nil.
|
|
33 |
|
|
34 |
"
|
|
35 |
JavaClass initialize
|
|
36 |
"
|
|
37 |
! !
|
|
38 |
|
130
|
39 |
!JavaClass class methodsFor:'instance creation'!
|
1
|
40 |
|
7
|
41 |
fullName:aString
|
90
|
42 |
self shouldNotImplement.
|
|
43 |
^ self new flags:0; setFullName:aString
|
7
|
44 |
|
|
45 |
!
|
|
46 |
|
38
|
47 |
fullName:aString numStatic:nStatic
|
|
48 |
|meta cls|
|
|
49 |
|
130
|
50 |
"/ check for a JAVA nameSpace to exist
|
|
51 |
JAVA isNil ifTrue:[
|
172
|
52 |
Namespace name:'JAVA'
|
130
|
53 |
].
|
|
54 |
|
38
|
55 |
"create the metaclass first"
|
|
56 |
|
40
|
57 |
meta := Metaclass new.
|
|
58 |
meta setSuperclass:(self).
|
130
|
59 |
meta instSize:(JavaClass instSize + nStatic).
|
172
|
60 |
"/ meta setName:(aString , 'class') asSymbol.
|
|
61 |
"/ meta setClassVariableString:''.
|
38
|
62 |
|
|
63 |
"then let the new meta create the class"
|
|
64 |
cls := meta new.
|
|
65 |
cls setSuperclass:JavaObject.
|
|
66 |
cls instSize:0.
|
130
|
67 |
cls setName:('JAVA::' , aString).
|
38
|
68 |
cls flags:0.
|
40
|
69 |
"/ cls setClassVariableString:''.
|
38
|
70 |
cls setInstanceVariableString:''.
|
|
71 |
cls category:#java.
|
40
|
72 |
|
|
73 |
cls setFullName:aString.
|
130
|
74 |
|
|
75 |
Smalltalk at:('JAVA::' , aString) asSymbol put:cls.
|
|
76 |
|
38
|
77 |
^ cls
|
|
78 |
|
|
79 |
"/ ^ self new setFullName:aString
|
|
80 |
|
|
81 |
"Created: 15.4.1996 / 15:52:55 / cg"
|
130
|
82 |
"Modified: 20.1.1997 / 13:03:37 / cg"
|
38
|
83 |
!
|
|
84 |
|
1
|
85 |
name:aString
|
7
|
86 |
self shouldNotImplement
|
1
|
87 |
|
|
88 |
"Created: 15.4.1996 / 15:52:55 / cg"
|
|
89 |
! !
|
|
90 |
|
130
|
91 |
!JavaClass class methodsFor:'signature parsing'!
|
52
|
92 |
|
|
93 |
initialValueFromSignature:aSignature
|
|
94 |
"given a signature, return an initializer value"
|
|
95 |
|
|
96 |
|s|
|
|
97 |
|
|
98 |
s := aSignature readStream.
|
|
99 |
^ self initialValueFromStream:s.
|
|
100 |
|
|
101 |
"
|
|
102 |
JavaClass initialValueFromSignature:'LObject;'
|
|
103 |
JavaClass initialValueFromSignature:'B'
|
|
104 |
JavaClass initialValueFromSignature:'I'
|
|
105 |
"
|
|
106 |
|
|
107 |
|
|
108 |
!
|
|
109 |
|
|
110 |
initialValueFromStream:s
|
|
111 |
"parse a fieldTypeSpec - see java doc"
|
|
112 |
|
|
113 |
|typeChar|
|
|
114 |
|
|
115 |
typeChar := s next.
|
|
116 |
^ InitialValuePerType at:typeChar ifAbsent:nil.
|
|
117 |
! !
|
|
118 |
|
130
|
119 |
!JavaClass class methodsFor:'special'!
|
40
|
120 |
|
|
121 |
setInstanceVariableStringFromFields:f in:aClass
|
|
122 |
|varNames|
|
|
123 |
|
|
124 |
varNames := ''.
|
|
125 |
f do:[:aField |
|
172
|
126 |
varNames := varNames , aField name , ' '
|
40
|
127 |
].
|
|
128 |
aClass setInstanceVariableString:varNames.
|
|
129 |
|
|
130 |
"Created: 15.4.1996 / 16:42:52 / cg"
|
|
131 |
! !
|
|
132 |
|
5
|
133 |
!JavaClass methodsFor:'accessing'!
|
|
134 |
|
74
|
135 |
binaryFile
|
|
136 |
^ binaryFilePath
|
|
137 |
|
|
138 |
|
|
139 |
!
|
|
140 |
|
7
|
141 |
category
|
|
142 |
"java classes do not really hav a category;
|
|
143 |
simulate one by separating its name into individual components,
|
|
144 |
prepending 'java'"
|
|
145 |
|
|
146 |
|nameComponents|
|
|
147 |
|
|
148 |
nameComponents := fullName asCollectionOfSubstringsSeparatedBy:$/.
|
160
|
149 |
nameComponents size <= 1 ifTrue:[
|
175
|
150 |
^ 'java' "/ fullName
|
160
|
151 |
].
|
|
152 |
^ ((nameComponents asStringWith:$/ from:1 to:(nameComponents size - 1))) replaceAll:$/ by:$.
|
|
153 |
|
175
|
154 |
"Modified: 30.7.1997 / 15:35:22 / cg"
|
7
|
155 |
!
|
|
156 |
|
5
|
157 |
constantPool
|
|
158 |
^ constantPool
|
7
|
159 |
!
|
|
160 |
|
83
|
161 |
fields
|
|
162 |
^ fields
|
|
163 |
!
|
|
164 |
|
7
|
165 |
fullName
|
|
166 |
^ fullName
|
8
|
167 |
!
|
|
168 |
|
110
|
169 |
interfaces
|
|
170 |
interfaces notNil ifTrue:[
|
172
|
171 |
interfaces := interfaces collect:[:clsRef |
|
|
172 |
clsRef isUnresolved ifTrue:[
|
|
173 |
clsRef preResolve
|
|
174 |
] ifFalse:[
|
|
175 |
clsRef
|
|
176 |
]
|
|
177 |
].
|
110
|
178 |
].
|
|
179 |
^ interfaces
|
|
180 |
!
|
|
181 |
|
90
|
182 |
javaClass
|
|
183 |
^ self
|
|
184 |
!
|
|
185 |
|
8
|
186 |
name
|
27
|
187 |
^ name "/ fullName
|
22
|
188 |
!
|
|
189 |
|
130
|
190 |
nameSpace
|
|
191 |
^ JAVA
|
|
192 |
|
|
193 |
"Created: 20.1.1997 / 13:04:30 / cg"
|
|
194 |
!
|
|
195 |
|
|
196 |
nameWithoutNameSpacePrefix
|
|
197 |
^ fullName
|
|
198 |
|
|
199 |
"Created: 20.1.1997 / 13:05:30 / cg"
|
|
200 |
!
|
|
201 |
|
|
202 |
nameWithoutPrefix
|
|
203 |
^ fullName
|
|
204 |
|
|
205 |
"Created: 20.1.1997 / 13:06:06 / cg"
|
|
206 |
!
|
|
207 |
|
22
|
208 |
package
|
|
209 |
"extract from the fullName"
|
|
210 |
|
|
211 |
|components|
|
|
212 |
|
|
213 |
components := fullName asCollectionOfSubstringsSeparatedBy:$/.
|
24
|
214 |
components size > 1 ifTrue:[
|
172
|
215 |
^ (components copyWithoutLast:1) asStringWith:$/
|
24
|
216 |
].
|
|
217 |
^ fullName
|
22
|
218 |
|
|
219 |
"
|
|
220 |
Java allClasses first fullName
|
|
221 |
Java allClasses first package
|
|
222 |
"
|
24
|
223 |
!
|
|
224 |
|
76
|
225 |
source
|
|
226 |
^ Java classSourceOf:self
|
|
227 |
|
|
228 |
"
|
|
229 |
(Java at:'java.awt.Frame') source
|
175
|
230 |
(Java at:'ArcTest') source
|
|
231 |
(Java at:'ArcCanvas') source
|
76
|
232 |
"
|
175
|
233 |
|
|
234 |
"Modified: 30.7.1997 / 14:31:01 / cg"
|
76
|
235 |
!
|
|
236 |
|
24
|
237 |
sourceFile
|
|
238 |
^ sourceFile
|
83
|
239 |
!
|
|
240 |
|
|
241 |
staticFields
|
|
242 |
^ staticFields
|
132
|
243 |
!
|
|
244 |
|
|
245 |
typeOfField:aFieldName
|
|
246 |
|
|
247 |
fields do:[:aField |
|
172
|
248 |
aField name = aFieldName ifTrue:[
|
|
249 |
^ aField type
|
|
250 |
]
|
132
|
251 |
].
|
|
252 |
self error:'no such field'
|
|
253 |
|
|
254 |
"
|
|
255 |
(JAVA at:#'java/awt/image/ColorModel') typeOfField:'pixel_bits'
|
|
256 |
"
|
|
257 |
|
|
258 |
"Modified: 21.1.1997 / 22:48:28 / cg"
|
5
|
259 |
! !
|
|
260 |
|
160
|
261 |
!JavaClass methodsFor:'documentation support'!
|
|
262 |
|
|
263 |
htmlDocumentation
|
|
264 |
^ nil "/ replace by access to javadoc-generated documentation later
|
|
265 |
|
|
266 |
"Modified: 22.3.1997 / 14:18:50 / cg"
|
|
267 |
! !
|
|
268 |
|
130
|
269 |
!JavaClass methodsFor:'fileOut'!
|
|
270 |
|
160
|
271 |
basicFileOutDefinitionOn:aStream withNameSpace:nameSpaceBoolean
|
|
272 |
JavaDecompiler definitionOf:self on:aStream
|
|
273 |
|
|
274 |
"Modified: 22.3.1997 / 14:30:28 / cg"
|
|
275 |
!
|
130
|
276 |
|
160
|
277 |
fileOut
|
|
278 |
self warn:'fileOut not yet supported'
|
|
279 |
|
|
280 |
"Modified: 22.3.1997 / 14:30:28 / cg"
|
|
281 |
"Created: 22.3.1997 / 14:35:43 / cg"
|
130
|
282 |
! !
|
|
283 |
|
43
|
284 |
!JavaClass methodsFor:'java initialization'!
|
|
285 |
|
|
286 |
classInit
|
|
287 |
"call the classes JAVA clinit function"
|
|
288 |
|
63
|
289 |
|m|
|
43
|
290 |
|
|
291 |
initialized := true.
|
|
292 |
|
63
|
293 |
m := self compiledMethodAt:#'<clinit>()V'.
|
|
294 |
m notNil ifTrue:[
|
90
|
295 |
"/ 'calling clinit() of ' print. self fullName printNL.
|
175
|
296 |
[
|
|
297 |
self
|
|
298 |
invokeJavaMethod:m
|
|
299 |
sender:thisContext
|
|
300 |
selector:#'<clinit>()V'.
|
|
301 |
] valueOnUnwindDo:[
|
|
302 |
initialized := false
|
|
303 |
]
|
43
|
304 |
] ifFalse:[
|
71
|
305 |
"/ self fullName print. ' has no clinit()' printNL.
|
43
|
306 |
].
|
|
307 |
|
|
308 |
"
|
|
309 |
JavaInterpreter instructionTrace:true.
|
|
310 |
JavaInterpreter callTrace:true.
|
|
311 |
|
|
312 |
(Java classNamed:'java.lang.String') classInit
|
|
313 |
(Java classNamed:'java.lang.System') classInit
|
|
314 |
|
|
315 |
(Java classNamed:'java/io/FileDescriptor') classInit
|
|
316 |
(Java classNamed:'java.util.Properties') classInit
|
|
317 |
"
|
175
|
318 |
|
|
319 |
"Modified: 30.7.1997 / 13:28:38 / cg"
|
60
|
320 |
!
|
|
321 |
|
|
322 |
initializeStaticFields
|
90
|
323 |
staticFields isNil ifTrue:[^ self].
|
|
324 |
|
60
|
325 |
staticFields do:[:f |
|
172
|
326 |
|val type|
|
86
|
327 |
|
172
|
328 |
(val := f constantValue) isNil ifTrue:[
|
|
329 |
"/ careful: int/long etc. constants must be initialized
|
|
330 |
"/ with correct type.
|
|
331 |
type := f type.
|
|
332 |
type == #long ifTrue:[
|
|
333 |
val := 0.
|
|
334 |
] ifFalse:[type == #int ifTrue:[
|
|
335 |
val := 0.
|
|
336 |
] ifFalse:[type == #float ifTrue:[
|
|
337 |
val := 0.0 asShortFloat
|
|
338 |
] ifFalse:[type == #double ifTrue:[
|
|
339 |
val := 0.0
|
|
340 |
] ifFalse:[type == #byte ifTrue:[
|
|
341 |
val := 0.
|
|
342 |
] ifFalse:[type == #char ifTrue:[
|
|
343 |
val := 0.
|
|
344 |
] ifFalse:[type == #'unsigned short' ifTrue:[
|
|
345 |
val := 0.
|
|
346 |
] ifFalse:[type == #boolean ifTrue:[
|
|
347 |
val := 0.
|
|
348 |
]]]]]]]].
|
|
349 |
].
|
|
350 |
self instVarNamed:(f name) put:val.
|
60
|
351 |
].
|
43
|
352 |
! !
|
|
353 |
|
|
354 |
!JavaClass methodsFor:'java instance creation'!
|
29
|
355 |
|
52
|
356 |
initValueFor:instVarName
|
|
357 |
|idx field|
|
|
358 |
|
|
359 |
idx := fields findFirst:[:field | field name = instVarName].
|
|
360 |
idx == 0 ifTrue:[
|
172
|
361 |
superclass ~~ JavaObject ifTrue:[
|
|
362 |
^ superclass initValueFor:instVarName
|
|
363 |
].
|
|
364 |
self halt
|
52
|
365 |
] ifFalse:[
|
172
|
366 |
field := fields at:idx.
|
|
367 |
^ field initialValue
|
52
|
368 |
].
|
|
369 |
!
|
|
370 |
|
|
371 |
new
|
|
372 |
"create a new instance, and call its JAVA init function"
|
|
373 |
|
|
374 |
|newJavaObject|
|
|
375 |
|
|
376 |
newJavaObject := self newCleared.
|
|
377 |
newJavaObject invoke:#'<init>'.
|
|
378 |
^ newJavaObject
|
|
379 |
|
|
380 |
"
|
|
381 |
(Java classNamed:'java.lang.String') basicNew inspect
|
|
382 |
(Java classNamed:'java.lang.String') new inspect
|
|
383 |
"
|
|
384 |
|
|
385 |
|
|
386 |
!
|
|
387 |
|
|
388 |
newCleared
|
148
|
389 |
"create a new cleared JAVA instance.
|
|
390 |
Its instVars are cleared to the corresponding typed values;
|
|
391 |
however, <init> is not invoked for it."
|
43
|
392 |
|
29
|
393 |
|newJavaObject|
|
|
394 |
|
|
395 |
newJavaObject := super basicNew.
|
43
|
396 |
|
52
|
397 |
fields isNil ifTrue:[
|
172
|
398 |
'OOPS - no fieldSpec for new object' errorPrintNL.
|
|
399 |
newJavaObject initializeToZero. "/ mhmh
|
52
|
400 |
] ifFalse:[
|
172
|
401 |
initValues notNil ifTrue:[
|
|
402 |
newJavaObject initializeFields:initValues
|
|
403 |
]
|
52
|
404 |
].
|
29
|
405 |
^ newJavaObject
|
43
|
406 |
|
|
407 |
"
|
|
408 |
(Java classNamed:'java.lang.String') basicNew inspect
|
53
|
409 |
(Java classNamed:'java.lang.String') newCleared inspect
|
43
|
410 |
(Java classNamed:'java.lang.String') new inspect
|
|
411 |
"
|
148
|
412 |
|
|
413 |
"Modified: 18.3.1997 / 17:31:18 / cg"
|
|
414 |
!
|
|
415 |
|
|
416 |
newFromInterpreter:anInterpreter sender:aJavaContext
|
|
417 |
"create a new instance, and call its JAVA init function.
|
|
418 |
This is done in the context of an already running interpreter."
|
|
419 |
|
|
420 |
|newJavaObject|
|
|
421 |
|
|
422 |
newJavaObject := self newCleared.
|
|
423 |
newJavaObject invoke:#'<init>' interpreter:anInterpreter sender:aJavaContext.
|
|
424 |
^ newJavaObject
|
|
425 |
|
|
426 |
"Created: 18.3.1997 / 17:33:07 / cg"
|
43
|
427 |
! !
|
|
428 |
|
|
429 |
!JavaClass methodsFor:'message sending'!
|
|
430 |
|
|
431 |
invokeJava:selector
|
170
|
432 |
"send javaSelector (name+sig) message, without arguments
|
|
433 |
as a static call to the class"
|
|
434 |
|
|
435 |
^ self
|
172
|
436 |
invokeJava:selector sender:thisContext sender
|
170
|
437 |
|
|
438 |
"Modified: 7.4.1997 / 22:52:30 / cg"
|
|
439 |
!
|
|
440 |
|
|
441 |
invokeJava:selector sender:aContext
|
|
442 |
"send javaSelector (name+sig) message, without arguments
|
|
443 |
as a static call to the class"
|
43
|
444 |
|
|
445 |
|method|
|
|
446 |
|
|
447 |
method := self lookupMethodFor:selector.
|
|
448 |
method notNil ifTrue:[
|
175
|
449 |
^ self
|
|
450 |
invokeJavaMethod:method
|
|
451 |
sender:aContext
|
|
452 |
selector:selector
|
43
|
453 |
].
|
|
454 |
|
|
455 |
^ self doesNotUnderstand:(Message selector:selector)
|
|
456 |
|
170
|
457 |
"Created: 7.4.1997 / 22:52:10 / cg"
|
175
|
458 |
"Modified: 30.7.1997 / 13:29:09 / cg"
|
43
|
459 |
!
|
|
460 |
|
|
461 |
invokeJava:selector with:arg
|
170
|
462 |
"send javaSelector (name+sig) message, with 1 argument
|
|
463 |
as a static call to the class"
|
43
|
464 |
|
|
465 |
|method|
|
|
466 |
|
|
467 |
method := self lookupMethodFor:selector.
|
|
468 |
method notNil ifTrue:[
|
175
|
469 |
^ self
|
|
470 |
invokeJavaMethod:method
|
|
471 |
sender:thisContext
|
|
472 |
selector:selector
|
|
473 |
with:arg
|
43
|
474 |
].
|
|
475 |
^ self doesNotUnderstand:(Message selector:selector)
|
|
476 |
|
175
|
477 |
"Modified: 30.7.1997 / 13:37:58 / cg"
|
170
|
478 |
!
|
|
479 |
|
|
480 |
invokeJava:selector with:arg sender:aContext
|
|
481 |
"send javaSelector (name+sig) message, with 1 argument
|
|
482 |
as a static call to the class"
|
|
483 |
|
|
484 |
|method|
|
|
485 |
|
|
486 |
method := self lookupMethodFor:selector.
|
|
487 |
method notNil ifTrue:[
|
175
|
488 |
^ self
|
|
489 |
invokeJavaMethod:method
|
|
490 |
sender:aContext
|
|
491 |
selector:selector
|
|
492 |
with:arg
|
170
|
493 |
].
|
|
494 |
^ self doesNotUnderstand:(Message selector:selector)
|
|
495 |
|
|
496 |
"Created: 7.4.1997 / 22:52:51 / cg"
|
175
|
497 |
"Modified: 30.7.1997 / 13:39:45 / cg"
|
43
|
498 |
!
|
|
499 |
|
175
|
500 |
invokeJavaMethod:aJavaMethod sender:aContext selector:sel
|
79
|
501 |
"invoke a static java method, without arguments"
|
|
502 |
|
|
503 |
|i val|
|
|
504 |
|
|
505 |
aJavaMethod numArgs ~~ 0 ifTrue:[
|
175
|
506 |
self halt:'need arguments'
|
79
|
507 |
].
|
|
508 |
aJavaMethod isStatic ifFalse:[
|
175
|
509 |
self halt:'non-static function'
|
79
|
510 |
].
|
|
511 |
|
|
512 |
i := JavaInterpreter new.
|
|
513 |
val := i interpret:aJavaMethod sender:aContext.
|
|
514 |
|
|
515 |
^ JavaObject convertJavaObject:val signature:(aJavaMethod retValSignature)
|
|
516 |
|
175
|
517 |
"Modified: 30.7.1997 / 12:01:52 / cg"
|
|
518 |
"Created: 30.7.1997 / 13:34:33 / cg"
|
79
|
519 |
!
|
|
520 |
|
175
|
521 |
invokeJavaMethod:aJavaMethod sender:aContext selector:sel with:arg1
|
|
522 |
"invoke a static java method, without arguments"
|
|
523 |
|
|
524 |
|i val|
|
43
|
525 |
|
175
|
526 |
aJavaMethod numArgs ~~ 1 ifTrue:[
|
|
527 |
self halt:'need arguments'
|
|
528 |
].
|
|
529 |
aJavaMethod isStatic ifFalse:[
|
|
530 |
self halt:'non-static function'
|
|
531 |
].
|
43
|
532 |
|
175
|
533 |
i := JavaInterpreter new.
|
|
534 |
i push:arg1.
|
|
535 |
val := i interpret:aJavaMethod sender:aContext.
|
|
536 |
|
|
537 |
^ JavaObject convertJavaObject:val signature:(aJavaMethod retValSignature)
|
|
538 |
|
|
539 |
"Created: 30.7.1997 / 13:34:33 / cg"
|
|
540 |
"Modified: 30.7.1997 / 13:38:46 / cg"
|
43
|
541 |
!
|
|
542 |
|
170
|
543 |
invokeJavaMethod:aJavaMethod with:arg sender:aContext
|
79
|
544 |
"invoke a static java method, with one argument"
|
|
545 |
|
|
546 |
|i val|
|
|
547 |
|
|
548 |
aJavaMethod numArgs ~~ 1 ifTrue:[
|
172
|
549 |
self halt:'argument count'
|
79
|
550 |
].
|
|
551 |
aJavaMethod isStatic ifFalse:[
|
172
|
552 |
self halt:'non-static function'
|
79
|
553 |
].
|
|
554 |
|
|
555 |
i := JavaInterpreter new.
|
|
556 |
i push:arg.
|
|
557 |
|
|
558 |
val := i interpret:aJavaMethod sender:aContext.
|
|
559 |
|
|
560 |
^ JavaObject convertJavaObject:val signature:(aJavaMethod retValSignature)
|
|
561 |
|
170
|
562 |
"Modified: 7.4.1997 / 22:50:02 / cg"
|
|
563 |
"Created: 7.4.1997 / 22:53:18 / cg"
|
79
|
564 |
!
|
|
565 |
|
43
|
566 |
lookupMethodFor:selector
|
|
567 |
|method cls sel|
|
|
568 |
|
|
569 |
sel := selector asSymbolIfInterned.
|
|
570 |
sel notNil ifTrue:[
|
172
|
571 |
cls := self.
|
|
572 |
[cls notNil] whileTrue:[
|
|
573 |
method := cls compiledMethodAt:sel.
|
|
574 |
method notNil ifTrue:[ ^ method ].
|
|
575 |
cls := cls superclass.
|
|
576 |
].
|
43
|
577 |
].
|
|
578 |
|
|
579 |
^ nil
|
29
|
580 |
! !
|
|
581 |
|
160
|
582 |
!JavaClass methodsFor:'printOut'!
|
|
583 |
|
|
584 |
printNameInHierarchy
|
|
585 |
"return my name as printed in the hierarchy"
|
|
586 |
|
|
587 |
^ self displayString
|
|
588 |
|
|
589 |
"Modified: 22.3.1997 / 14:16:55 / cg"
|
|
590 |
!
|
|
591 |
|
|
592 |
printOutOn:aStream
|
|
593 |
self warn:'printOut not yet supported'
|
|
594 |
|
|
595 |
"Created: 22.3.1997 / 14:36:12 / cg"
|
|
596 |
!
|
|
597 |
|
|
598 |
printOutProtocolOn:aStream
|
|
599 |
self warn:'printOut not yet supported'
|
|
600 |
|
|
601 |
"Created: 22.3.1997 / 14:36:28 / cg"
|
|
602 |
! !
|
|
603 |
|
1
|
604 |
!JavaClass methodsFor:'printing & storing'!
|
|
605 |
|
|
606 |
displayString
|
125
|
607 |
^ (fullName copyFrom:1) replaceAll:$/ by:$.
|
|
608 |
|
41
|
609 |
"/ ^ 'JAVA-' , name .
|
|
610 |
"/ ^ name , '(Java)' "/ 'JavaClass(' , name , ')'
|
1
|
611 |
|
|
612 |
"Created: 15.4.1996 / 16:02:48 / cg"
|
125
|
613 |
|
|
614 |
|
|
615 |
|
|
616 |
|
1
|
617 |
! !
|
|
618 |
|
|
619 |
!JavaClass methodsFor:'private accessing'!
|
|
620 |
|
5
|
621 |
addMethod:m name:name signature:signature
|
63
|
622 |
|sel|
|
|
623 |
|
|
624 |
sel := (name , signature) asSymbol.
|
|
625 |
self addSelector:sel withMethod:m.
|
|
626 |
^ self.
|
|
627 |
|
98
|
628 |
"/ selectorArray isNil ifTrue:[
|
|
629 |
"/ selectorArray := #().
|
|
630 |
"/ methodArray := #()
|
|
631 |
"/ ].
|
|
632 |
"/ selectorArray := selectorArray copyWith:(name , signature) asSymbol. "/ name.
|
|
633 |
"/"/ selectorArray := selectorArray copyWith:name asSymbol. "/ name.
|
|
634 |
"/ methodArray := methodArray copyWith:m
|
5
|
635 |
|
|
636 |
"Created: 15.4.1996 / 16:42:52 / cg"
|
98
|
637 |
|
|
638 |
|
5
|
639 |
!
|
|
640 |
|
130
|
641 |
addSelector:newSelector withMethod:newMethod
|
|
642 |
"redefined to not flush smalltalk caches and send NO smalltalk-class
|
|
643 |
change notification. Will eventually flush Java caches."
|
|
644 |
|
|
645 |
|nargs oldMethod|
|
|
646 |
|
|
647 |
oldMethod := self compiledMethodAt:newSelector.
|
|
648 |
(self primAddSelector:newSelector withMethod:newMethod) ifFalse:[^ false].
|
|
649 |
|
|
650 |
^ true
|
|
651 |
|
|
652 |
"Created: 20.1.1997 / 13:00:48 / cg"
|
|
653 |
!
|
|
654 |
|
43
|
655 |
markUninitialized
|
|
656 |
initialized := false.
|
|
657 |
!
|
|
658 |
|
1
|
659 |
setAccessFlags:flags
|
3
|
660 |
accessFlags := flags.
|
1
|
661 |
|
|
662 |
"Created: 15.4.1996 / 16:42:52 / cg"
|
5
|
663 |
!
|
|
664 |
|
73
|
665 |
setBinaryFilePath:aPathName
|
|
666 |
binaryFilePath := aPathName
|
|
667 |
!
|
|
668 |
|
5
|
669 |
setConstantPool:anArray
|
|
670 |
constantPool := anArray.
|
90
|
671 |
hasUnresolvedConstants := true
|
5
|
672 |
|
|
673 |
"Created: 15.4.1996 / 16:42:52 / cg"
|
|
674 |
!
|
|
675 |
|
27
|
676 |
setFields:f
|
54
|
677 |
JavaClass setInstanceVariableStringFromFields:f in:self.
|
|
678 |
|
|
679 |
instSize := superclass instSize + f size.
|
|
680 |
|
52
|
681 |
fields := f.
|
|
682 |
initValues := self allInstVarNames collect:[:nm |
|
172
|
683 |
self initValueFor:nm
|
52
|
684 |
].
|
76
|
685 |
initValues isEmpty ifTrue:[
|
172
|
686 |
initValues := nil
|
76
|
687 |
].
|
27
|
688 |
|
|
689 |
"Created: 15.4.1996 / 16:42:52 / cg"
|
52
|
690 |
|
|
691 |
|
27
|
692 |
!
|
|
693 |
|
7
|
694 |
setFullName:aString
|
|
695 |
|nameComponents|
|
|
696 |
|
125
|
697 |
fullName := aString asSymbol.
|
7
|
698 |
nameComponents := aString asCollectionOfSubstringsSeparatedBy:$/.
|
125
|
699 |
name := nameComponents last asSymbol
|
7
|
700 |
|
|
701 |
"Created: 15.4.1996 / 16:42:52 / cg"
|
|
702 |
!
|
|
703 |
|
110
|
704 |
setInterfaces:i
|
|
705 |
i size > 0 ifTrue:[
|
172
|
706 |
interfaces := i
|
168
|
707 |
] ifFalse:[
|
172
|
708 |
interfaces := nil
|
110
|
709 |
]
|
|
710 |
|
168
|
711 |
"Modified: 7.4.1997 / 15:44:53 / cg"
|
110
|
712 |
!
|
|
713 |
|
5
|
714 |
setSourceFile:aFilename
|
|
715 |
sourceFile := aFilename.
|
|
716 |
|
|
717 |
"Created: 15.4.1996 / 16:42:52 / cg"
|
27
|
718 |
!
|
|
719 |
|
60
|
720 |
setStaticFields:f
|
|
721 |
JavaClass setInstanceVariableStringFromFields:f in:self class.
|
|
722 |
|
|
723 |
staticFields := f.
|
|
724 |
|
|
725 |
|
|
726 |
!
|
|
727 |
|
27
|
728 |
setSuperclass:aClass
|
|
729 |
aClass isNil ifTrue:[
|
172
|
730 |
super setSuperclass:JavaObject
|
29
|
731 |
] ifFalse:[
|
172
|
732 |
(aClass isMemberOf:JavaUnresolvedClassConstant) ifTrue:[
|
|
733 |
self halt.
|
|
734 |
].
|
|
735 |
super setSuperclass:aClass.
|
27
|
736 |
].
|
29
|
737 |
|
|
738 |
instvars notNil ifTrue:[
|
172
|
739 |
(superclass notNil and:[(superclass isMemberOf:JavaUnresolvedClassConstant) not]) ifTrue:[
|
|
740 |
instSize := superclass instSize + (instvars asCollectionOfWords size)
|
|
741 |
] ifFalse:[
|
|
742 |
instSize := instvars asCollectionOfWords size
|
|
743 |
]
|
29
|
744 |
].
|
27
|
745 |
|
|
746 |
"Created: 15.4.1996 / 16:42:52 / cg"
|
1
|
747 |
! !
|
|
748 |
|
18
|
749 |
!JavaClass methodsFor:'queries'!
|
|
750 |
|
42
|
751 |
browserClass
|
|
752 |
"return the browser to use for this class -
|
|
753 |
this can be redefined in special classes, to get different browsers"
|
|
754 |
|
|
755 |
^ JavaBrowser
|
|
756 |
|
|
757 |
|
|
758 |
|
|
759 |
|
|
760 |
!
|
|
761 |
|
53
|
762 |
hasInterface:aJavaInterface
|
111
|
763 |
interfaces size > 0 ifTrue:[
|
172
|
764 |
self interfaces do:[:if |
|
|
765 |
aJavaInterface == if ifTrue:[
|
|
766 |
^ true
|
|
767 |
].
|
|
768 |
]
|
111
|
769 |
].
|
|
770 |
"/ ^ false.
|
|
771 |
|
69
|
772 |
aJavaInterface methodDictionary keysAndValuesDo:[:sel :mthd |
|
172
|
773 |
(self canUnderstand:sel) ifFalse:[
|
|
774 |
self halt.
|
|
775 |
^ false.
|
|
776 |
]
|
53
|
777 |
].
|
|
778 |
^ true
|
52
|
779 |
!
|
|
780 |
|
83
|
781 |
isAbstract
|
|
782 |
^ (accessFlags bitAnd:16r0400) ~~ 0
|
|
783 |
!
|
|
784 |
|
27
|
785 |
isClass
|
|
786 |
^ true
|
|
787 |
!
|
|
788 |
|
18
|
789 |
isFinal
|
|
790 |
^ (accessFlags bitAnd:16r0010) ~~ 0
|
|
791 |
!
|
|
792 |
|
43
|
793 |
isInitialized
|
|
794 |
^ initialized == true
|
|
795 |
!
|
|
796 |
|
18
|
797 |
isInterface
|
|
798 |
^ (accessFlags bitAnd:16r0200) ~~ 0
|
|
799 |
!
|
|
800 |
|
148
|
801 |
isJavaClass
|
|
802 |
^ self ~~ JavaClass
|
|
803 |
|
|
804 |
"Created: 18.3.1997 / 17:48:01 / cg"
|
|
805 |
!
|
|
806 |
|
71
|
807 |
isObsolete
|
|
808 |
"return true, if the receiver is obsolete
|
|
809 |
Java classes are never."
|
|
810 |
|
|
811 |
^ false
|
|
812 |
|
|
813 |
|
|
814 |
!
|
|
815 |
|
18
|
816 |
isPublic
|
|
817 |
^ (accessFlags bitAnd:16r0001) ~~ 0
|
90
|
818 |
!
|
21
|
819 |
|
90
|
820 |
isUnresolved
|
|
821 |
^ false
|
175
|
822 |
!
|
|
823 |
|
|
824 |
supportsMethodCategories
|
|
825 |
^ self == JavaClass
|
|
826 |
|
|
827 |
"Created: 30.7.1997 / 14:58:58 / cg"
|
21
|
828 |
! !
|
|
829 |
|
43
|
830 |
!JavaClass methodsFor:'smalltalk interface'!
|
|
831 |
|
|
832 |
invoke:selector
|
175
|
833 |
"send a message, without args."
|
43
|
834 |
|
|
835 |
|method cls sel|
|
|
836 |
|
|
837 |
sel := selector asSymbolIfInterned.
|
|
838 |
sel notNil ifTrue:[
|
175
|
839 |
cls := self.
|
|
840 |
[cls notNil and:[cls ~~ JavaObject]] whileTrue:[
|
|
841 |
cls methodDictionary keysAndValuesDo:[:sel :aMethod |
|
69
|
842 |
|
43
|
843 |
"/ aMethod name printNL.
|
175
|
844 |
|
|
845 |
(aMethod name == selector
|
|
846 |
or:[aMethod signatureNameWithoutReturnType = selector]) ifTrue:[
|
|
847 |
aMethod numArgs == 0 ifTrue:[
|
|
848 |
^ self
|
|
849 |
invokeJavaMethod:aMethod
|
|
850 |
sender:thisContext
|
|
851 |
selector:selector
|
|
852 |
]
|
|
853 |
]
|
|
854 |
].
|
|
855 |
cls := cls superclass.
|
|
856 |
].
|
|
857 |
].
|
|
858 |
|
|
859 |
^ self doesNotUnderstand:(Message selector:selector)
|
|
860 |
|
|
861 |
"
|
|
862 |
|stack|
|
|
863 |
|
|
864 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
865 |
stack invoke:#'<init>'.
|
|
866 |
"
|
|
867 |
"
|
|
868 |
|stack|
|
|
869 |
|
|
870 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
871 |
stack invoke:#isEmpty.
|
|
872 |
"
|
|
873 |
"
|
|
874 |
|stack|
|
|
875 |
|
|
876 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
877 |
stack invoke:#size.
|
|
878 |
"
|
|
879 |
|
|
880 |
"Created: 30.7.1997 / 14:06:50 / cg"
|
|
881 |
"Modified: 30.7.1997 / 14:07:55 / cg"
|
|
882 |
!
|
|
883 |
|
|
884 |
invoke:selector signature:signature
|
|
885 |
"send a message, without args."
|
|
886 |
|
|
887 |
|method cls sel sig|
|
|
888 |
|
|
889 |
sel := selector asSymbolIfInterned.
|
|
890 |
sel notNil ifTrue:[
|
|
891 |
sig := signature asSymbolIfInterned.
|
|
892 |
sig notNil ifTrue:[
|
|
893 |
cls := self.
|
|
894 |
[cls notNil and:[cls ~~ JavaObject]] whileTrue:[
|
|
895 |
cls methodDictionary keysAndValuesDo:[:sel :aMethod |
|
|
896 |
|
|
897 |
aMethod name == selector ifTrue:[
|
|
898 |
aMethod signature == signature ifTrue:[
|
|
899 |
aMethod numArgs == 0 ifTrue:[
|
|
900 |
^ self
|
|
901 |
invokeJavaMethod:aMethod
|
|
902 |
sender:thisContext
|
|
903 |
selector:selector
|
|
904 |
]
|
|
905 |
]
|
|
906 |
]
|
|
907 |
].
|
|
908 |
cls := cls superclass.
|
|
909 |
].
|
|
910 |
].
|
43
|
911 |
].
|
|
912 |
|
|
913 |
^ self doesNotUnderstand:(Message selector:selector)
|
|
914 |
|
|
915 |
"
|
|
916 |
|stack|
|
|
917 |
|
|
918 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
919 |
stack invoke:#'<init>'.
|
|
920 |
"
|
|
921 |
"
|
|
922 |
|stack|
|
|
923 |
|
|
924 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
925 |
stack invoke:#isEmpty.
|
|
926 |
"
|
|
927 |
"
|
|
928 |
|stack|
|
|
929 |
|
|
930 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
931 |
stack invoke:#size.
|
|
932 |
"
|
|
933 |
|
175
|
934 |
"Modified: 30.7.1997 / 14:07:55 / cg"
|
|
935 |
"Created: 30.7.1997 / 14:12:29 / cg"
|
|
936 |
!
|
43
|
937 |
|
175
|
938 |
invoke:selector signature:signature with:arg
|
|
939 |
"send a message, with 1 arg1."
|
|
940 |
|
|
941 |
|method cls sel sig|
|
|
942 |
|
|
943 |
sel := selector asSymbolIfInterned.
|
|
944 |
sel notNil ifTrue:[
|
|
945 |
sig := signature asSymbolIfInterned.
|
|
946 |
sig notNil ifTrue:[
|
|
947 |
cls := self.
|
|
948 |
[cls notNil and:[cls ~~ JavaObject]] whileTrue:[
|
|
949 |
cls methodDictionary keysAndValuesDo:[:mFullSelector :aMethod |
|
|
950 |
|
|
951 |
aMethod name == sel ifTrue:[
|
|
952 |
aMethod signature == sig ifTrue:[
|
|
953 |
aMethod numArgs == 1 ifTrue:[
|
|
954 |
^ self
|
|
955 |
invokeJavaMethod:aMethod
|
|
956 |
sender:thisContext
|
|
957 |
selector:selector
|
|
958 |
with:arg
|
|
959 |
]
|
|
960 |
]
|
|
961 |
]
|
|
962 |
].
|
|
963 |
cls := cls superclass.
|
|
964 |
].
|
|
965 |
].
|
|
966 |
].
|
|
967 |
|
|
968 |
^ self doesNotUnderstand:(Message selector:selector)
|
|
969 |
|
|
970 |
"
|
|
971 |
|stack|
|
|
972 |
|
|
973 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
974 |
stack invoke:#'<init>'.
|
|
975 |
"
|
|
976 |
"
|
|
977 |
|stack|
|
|
978 |
|
|
979 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
980 |
stack invoke:#isEmpty.
|
|
981 |
"
|
|
982 |
"
|
|
983 |
|stack|
|
|
984 |
|
|
985 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
986 |
stack invoke:#size.
|
|
987 |
"
|
|
988 |
|
|
989 |
"Created: 30.7.1997 / 14:13:30 / cg"
|
|
990 |
"Modified: 30.7.1997 / 14:19:57 / cg"
|
113
|
991 |
!
|
|
992 |
|
|
993 |
invoke:selector with:arg
|
175
|
994 |
"send a message, with one arg"
|
|
995 |
|
|
996 |
|method cls sel|
|
|
997 |
|
|
998 |
sel := selector asSymbolIfInterned.
|
|
999 |
sel notNil ifTrue:[
|
|
1000 |
cls := self.
|
|
1001 |
[cls notNil and:[cls ~~ JavaObject]] whileTrue:[
|
|
1002 |
cls methodDictionary keysAndValuesDo:[:sel :aMethod |
|
|
1003 |
|
|
1004 |
"/ aMethod name printNL.
|
|
1005 |
(aMethod name == selector
|
|
1006 |
or:[aMethod signatureNameWithoutReturnType = selector]) ifTrue:[
|
|
1007 |
aMethod numArgs == 1 ifTrue:[
|
|
1008 |
^ self
|
|
1009 |
invokeJavaMethod:aMethod
|
|
1010 |
sender:thisContext
|
|
1011 |
selector:selector
|
|
1012 |
with:arg
|
|
1013 |
]
|
|
1014 |
]
|
|
1015 |
].
|
|
1016 |
cls := cls superclass.
|
|
1017 |
].
|
|
1018 |
].
|
|
1019 |
|
|
1020 |
^ self doesNotUnderstand:(Message selector:selector)
|
|
1021 |
|
|
1022 |
"Modified: 30.7.1997 / 13:59:49 / cg"
|
|
1023 |
!
|
|
1024 |
|
|
1025 |
invoke:selector with:arg1 with:arg2
|
|
1026 |
"send a message, with two args"
|
113
|
1027 |
|
|
1028 |
|method cls sel|
|
|
1029 |
|
|
1030 |
sel := selector asSymbolIfInterned.
|
|
1031 |
sel notNil ifTrue:[
|
175
|
1032 |
cls := self.
|
|
1033 |
[cls notNil and:[cls ~~ JavaObject]] whileTrue:[
|
|
1034 |
cls methodDictionary keysAndValuesDo:[:sel :aMethod |
|
113
|
1035 |
|
|
1036 |
"/ aMethod name printNL.
|
175
|
1037 |
(aMethod name == selector
|
|
1038 |
or:[aMethod signatureNameWithoutReturnType = selector]) ifTrue:[
|
|
1039 |
aMethod numArgs == 2 ifTrue:[
|
|
1040 |
^ self
|
|
1041 |
invokeJavaMethod:aMethod
|
|
1042 |
sender:thisContext
|
|
1043 |
selector:selector
|
|
1044 |
with:arg1
|
|
1045 |
with:arg2
|
|
1046 |
]
|
|
1047 |
]
|
|
1048 |
].
|
|
1049 |
cls := cls superclass.
|
|
1050 |
].
|
113
|
1051 |
].
|
|
1052 |
|
|
1053 |
^ self doesNotUnderstand:(Message selector:selector)
|
|
1054 |
|
175
|
1055 |
"Modified: 30.7.1997 / 13:39:15 / cg"
|
|
1056 |
"Created: 30.7.1997 / 14:00:09 / cg"
|
|
1057 |
!
|
|
1058 |
|
|
1059 |
invoke:selector withAll:args
|
|
1060 |
"send a message, with a number of args"
|
|
1061 |
|
|
1062 |
|method cls sel numArgGiven|
|
|
1063 |
|
|
1064 |
numArgGiven := args size.
|
|
1065 |
|
|
1066 |
sel := selector asSymbolIfInterned.
|
|
1067 |
sel notNil ifTrue:[
|
|
1068 |
cls := self.
|
|
1069 |
[cls notNil and:[cls ~~ JavaObject]] whileTrue:[
|
|
1070 |
cls methodDictionary keysAndValuesDo:[:sel :aMethod |
|
|
1071 |
|
|
1072 |
"/ aMethod name printNL.
|
|
1073 |
(aMethod name == selector
|
|
1074 |
or:[aMethod signatureNameWithoutReturnType = selector]) ifTrue:[
|
|
1075 |
aMethod numArgs == numArgGiven ifTrue:[
|
|
1076 |
^ self
|
|
1077 |
invokeJavaMethod:aMethod
|
|
1078 |
sender:thisContext
|
|
1079 |
selector:selector
|
|
1080 |
withAll:args
|
|
1081 |
]
|
|
1082 |
]
|
|
1083 |
].
|
|
1084 |
cls := cls superclass.
|
|
1085 |
].
|
|
1086 |
].
|
|
1087 |
|
|
1088 |
^ self doesNotUnderstand:(Message selector:selector)
|
|
1089 |
|
|
1090 |
"Modified: 30.7.1997 / 13:39:15 / cg"
|
|
1091 |
"Created: 30.7.1997 / 14:00:53 / cg"
|
|
1092 |
!
|
|
1093 |
|
|
1094 |
invokeSignature:signature
|
|
1095 |
"send a message, without args."
|
|
1096 |
|
|
1097 |
|method cls sel|
|
|
1098 |
|
|
1099 |
sel := signature asSymbolIfInterned.
|
|
1100 |
sel notNil ifTrue:[
|
|
1101 |
cls := self.
|
|
1102 |
[cls notNil and:[cls ~~ JavaObject]] whileTrue:[
|
|
1103 |
cls methodDictionary keysAndValuesDo:[:sel :aMethod |
|
|
1104 |
|
|
1105 |
"/ aMethod name printNL.
|
|
1106 |
|
|
1107 |
aMethod signatureName = signature ifTrue:[
|
|
1108 |
aMethod numArgs == 0 ifTrue:[
|
|
1109 |
^ self
|
|
1110 |
invokeJavaMethod:aMethod
|
|
1111 |
sender:thisContext
|
|
1112 |
selector:signature
|
|
1113 |
]
|
|
1114 |
]
|
|
1115 |
].
|
|
1116 |
cls := cls superclass.
|
|
1117 |
].
|
|
1118 |
].
|
|
1119 |
|
|
1120 |
^ self doesNotUnderstand:(Message selector:signature)
|
|
1121 |
|
|
1122 |
"
|
|
1123 |
|stack|
|
|
1124 |
|
|
1125 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
1126 |
stack invoke:#'<init>'.
|
|
1127 |
"
|
|
1128 |
"
|
|
1129 |
|stack|
|
|
1130 |
|
|
1131 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
1132 |
stack invoke:#isEmpty.
|
|
1133 |
"
|
|
1134 |
"
|
|
1135 |
|stack|
|
|
1136 |
|
|
1137 |
stack := (Java at:'java/util/Stack') basicNew.
|
|
1138 |
stack invoke:#size.
|
|
1139 |
"
|
|
1140 |
|
|
1141 |
"Modified: 30.7.1997 / 14:07:55 / cg"
|
|
1142 |
"Created: 30.7.1997 / 14:09:31 / cg"
|
133
|
1143 |
!
|
|
1144 |
|
|
1145 |
methodMatching:aSmalltalkSelector
|
|
1146 |
|numArgs cls|
|
|
1147 |
|
|
1148 |
numArgs := aSmalltalkSelector numArgs.
|
|
1149 |
cls := self.
|
|
1150 |
[cls notNil] whileTrue:[
|
172
|
1151 |
methodDictionary keysAndValuesDo:[:jSelector :aMethod |
|
|
1152 |
aMethod numArgs == numArgs ifTrue:[
|
|
1153 |
aMethod name = aSmalltalkSelector ifTrue:[
|
|
1154 |
^ aMethod
|
|
1155 |
]
|
|
1156 |
]
|
|
1157 |
].
|
|
1158 |
cls := cls superclass
|
133
|
1159 |
].
|
|
1160 |
^ nil
|
|
1161 |
|
|
1162 |
"Modified: 1.2.1997 / 21:57:36 / cg"
|
|
1163 |
"Created: 1.2.1997 / 21:57:53 / cg"
|
43
|
1164 |
! !
|
|
1165 |
|
130
|
1166 |
!JavaClass class methodsFor:'documentation'!
|
1
|
1167 |
|
|
1168 |
version
|
175
|
1169 |
^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaClass.st,v 1.50 1997/07/30 14:40:26 cg Exp $'
|
1
|
1170 |
! !
|
52
|
1171 |
JavaClass initialize!
|