454
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1997 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
|
13 |
|
|
14 |
|
713
|
15 |
"{ Package: 'stx:libjava' }"
|
|
16 |
|
90
|
17 |
JavaClassRef subclass:#JavaClassPointerRef
|
222
|
18 |
instanceVariableNames:'deref'
|
66
|
19 |
classVariableNames:''
|
|
20 |
poolDictionaries:''
|
713
|
21 |
category:'Languages-Java-Reader-Support'
|
66
|
22 |
!
|
|
23 |
|
454
|
24 |
!JavaClassPointerRef class methodsFor:'documentation'!
|
|
25 |
|
|
26 |
copyright
|
|
27 |
"
|
|
28 |
COPYRIGHT (c) 1997 by eXept Software AG
|
|
29 |
All Rights Reserved
|
|
30 |
|
|
31 |
This software is furnished under a license and may be used
|
|
32 |
only in accordance with the terms of that license and with the
|
|
33 |
inclusion of the above copyright notice. This software may not
|
|
34 |
be provided or otherwise made available to, or used by, any
|
|
35 |
other person. No title to or ownership of the software is
|
|
36 |
hereby transferred.
|
|
37 |
"
|
|
38 |
|
|
39 |
|
|
40 |
! !
|
66
|
41 |
|
|
42 |
!JavaClassPointerRef methodsFor:'accessing'!
|
|
43 |
|
168
|
44 |
arrayClass
|
|
45 |
class isJavaClass ifTrue:[
|
|
46 |
^ Array
|
|
47 |
].
|
|
48 |
^ class
|
|
49 |
|
|
50 |
"Created: 7.4.1997 / 13:46:12 / cg"
|
|
51 |
"Modified: 7.4.1997 / 13:47:17 / cg"
|
|
52 |
!
|
|
53 |
|
66
|
54 |
javaClass
|
90
|
55 |
class isUnresolved ifTrue:[
|
|
56 |
self halt.
|
|
57 |
].
|
|
58 |
^ class
|
66
|
59 |
|
|
60 |
"Created: 25.6.1996 / 09:36:09 / cg"
|
565
|
61 |
!
|
|
62 |
|
|
63 |
javaClassForNew
|
|
64 |
class isUnresolved ifTrue:[
|
|
65 |
self halt.
|
|
66 |
].
|
|
67 |
^ self
|
|
68 |
|
|
69 |
"Created: 25.6.1996 / 09:36:09 / cg"
|
66
|
70 |
! !
|
|
71 |
|
168
|
72 |
!JavaClassPointerRef methodsFor:'converting'!
|
|
73 |
|
|
74 |
asClassPointerRef
|
|
75 |
^ self
|
|
76 |
|
|
77 |
"Created: 7.4.1997 / 13:40:42 / cg"
|
222
|
78 |
!
|
|
79 |
|
|
80 |
deref
|
|
81 |
"dereference my type; return a new JavaClassPointerRef"
|
|
82 |
|
|
83 |
"/ cache
|
|
84 |
deref notNil ifTrue:[^ deref].
|
|
85 |
|
229
|
86 |
(nameandType startsWith:'[[') ifTrue:[
|
|
87 |
deref := JavaClassPointerRef class:class nameandType:(nameandType copyFrom:2).
|
|
88 |
^ deref.
|
|
89 |
].
|
|
90 |
|
222
|
91 |
"/ todo: dereference & remember in deref cache
|
|
92 |
self halt
|
|
93 |
|
|
94 |
"Created: 14.8.1997 / 16:55:56 / cg"
|
229
|
95 |
"Modified: 17.8.1997 / 18:54:56 / cg"
|
168
|
96 |
! !
|
|
97 |
|
625
|
98 |
!JavaClassPointerRef methodsFor:'queries'!
|
|
99 |
|
|
100 |
isJavaClassRef
|
|
101 |
^ false
|
|
102 |
|
|
103 |
"Created: / 9.11.1999 / 17:17:18 / cg"
|
|
104 |
! !
|
|
105 |
|
135
|
106 |
!JavaClassPointerRef class methodsFor:'documentation'!
|
66
|
107 |
|
|
108 |
version
|
2108
|
109 |
^ '$Header: /cvs/stx/stx/libjava/Attic/JavaClassPointerRef.st,v 1.10 2002-11-22 20:12:00 cg Exp $'
|
66
|
110 |
! !
|