1
|
1 |
JavaUnresolvedConstant subclass:#JavaUnresolvedClassConstant
|
21
|
2 |
instanceVariableNames:'fullName pool poolIndex'
|
1
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
|
5 |
category:'Java-Reader-Support'
|
|
6 |
!
|
|
7 |
|
|
8 |
|
|
9 |
!JavaUnresolvedClassConstant class methodsFor:'instance creation'!
|
|
10 |
|
21
|
11 |
nameIndex:index pool:aConstantPool slotIndex:slotIndex
|
|
12 |
^ self new index:index pool:aConstantPool slotIndex:slotIndex
|
|
13 |
! !
|
|
14 |
|
|
15 |
!JavaUnresolvedClassConstant methodsFor:'accessing'!
|
|
16 |
|
|
17 |
fullName
|
|
18 |
^ fullName
|
|
19 |
|
|
20 |
!
|
|
21 |
|
|
22 |
index:index pool:aConstantPool slotIndex:slotIndex
|
|
23 |
super index:index.
|
|
24 |
pool := aConstantPool.
|
|
25 |
poolIndex := slotIndex.
|
|
26 |
|
1
|
27 |
! !
|
|
28 |
|
|
29 |
!JavaUnresolvedClassConstant methodsFor:'resolving'!
|
|
30 |
|
21
|
31 |
resolve
|
32
|
32 |
^ Java classNamed:fullName.
|
21
|
33 |
|
|
34 |
"Created: 15.4.1996 / 15:51:42 / cg"
|
|
35 |
"Modified: 15.4.1996 / 16:26:05 / cg"
|
|
36 |
!
|
|
37 |
|
1
|
38 |
resolveFrom:aConstantTable
|
21
|
39 |
|cls|
|
1
|
40 |
|
21
|
41 |
|
|
42 |
fullName := self class resolve:(aConstantTable at:index) from:aConstantTable.
|
32
|
43 |
cls := Java classNamed:fullName.
|
21
|
44 |
cls notNil ifTrue:[
|
|
45 |
^ cls
|
|
46 |
].
|
|
47 |
Java rememberUnresolved:self.
|
|
48 |
^ self
|
|
49 |
"/ ^ JavaClass fullName:fullName
|
1
|
50 |
|
|
51 |
"Created: 15.4.1996 / 15:51:42 / cg"
|
|
52 |
"Modified: 15.4.1996 / 16:26:05 / cg"
|
|
53 |
! !
|
|
54 |
|
|
55 |
!JavaUnresolvedClassConstant class methodsFor:'documentation'!
|
|
56 |
|
|
57 |
version
|
32
|
58 |
^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaUnresolvedClassConstant.st,v 1.6 1996/05/02 15:19:02 cg Exp $'
|
1
|
59 |
! !
|