1
|
1 |
JavaUnresolvedRefConstant subclass:#JavaUnresolvedFieldrefConstant
|
90
|
2 |
instanceVariableNames:'classIndex'
|
1
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
|
5 |
category:'Java-Reader-Support'
|
|
6 |
!
|
|
7 |
|
|
8 |
|
90
|
9 |
!JavaUnresolvedFieldrefConstant class methodsFor:'instance creation'!
|
|
10 |
|
|
11 |
pool:aPool poolIndex:idx classIndex:cIdx nameandTypeIndex:nmIdx
|
|
12 |
^ self new
|
|
13 |
pool:aPool poolIndex:idx classIndex:cIdx nameandTypeIndex:nmIdx
|
|
14 |
|
|
15 |
|
|
16 |
! !
|
|
17 |
|
|
18 |
!JavaUnresolvedFieldrefConstant methodsFor:'accessing'!
|
|
19 |
|
|
20 |
pool:aPool poolIndex:slotIndex classIndex:cIdx nameandTypeIndex:nmIdx
|
|
21 |
constantPool := aPool.
|
|
22 |
constantPoolIndex := slotIndex.
|
|
23 |
classIndex := cIdx.
|
|
24 |
nameandTypeIndex := nmIdx
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
! !
|
|
29 |
|
1
|
30 |
!JavaUnresolvedFieldrefConstant methodsFor:'resolving'!
|
|
31 |
|
90
|
32 |
preResolve
|
|
33 |
|className class nameAndType ref|
|
|
34 |
|
|
35 |
class := (constantPool at:classIndex).
|
|
36 |
class isUnresolved ifTrue:[
|
|
37 |
class := class preResolve.
|
|
38 |
].
|
|
39 |
class isUnresolved ifFalse:[
|
|
40 |
nameAndType := (constantPool at:nameandTypeIndex).
|
|
41 |
nameAndType isUnresolved ifTrue:[
|
|
42 |
nameAndType := nameAndType preResolve.
|
|
43 |
].
|
|
44 |
nameAndType isUnresolved ifFalse:[
|
|
45 |
"/ good - class is there
|
|
46 |
|
|
47 |
ref := JavaFieldref class:class nameandType:nameAndType.
|
|
48 |
constantPool at:constantPoolIndex put:ref.
|
|
49 |
^ ref
|
|
50 |
]
|
|
51 |
].
|
|
52 |
|
|
53 |
self rememberForResolveWith:(class fullName).
|
|
54 |
^ self
|
|
55 |
|
|
56 |
"Created: 15.4.1996 / 16:05:50 / cg"
|
|
57 |
"Modified: 15.4.1996 / 16:26:44 / cg"
|
|
58 |
! !
|
|
59 |
|
|
60 |
!JavaUnresolvedFieldrefConstant ignoredMethodsFor:'resolving'!
|
|
61 |
|
1
|
62 |
resolveFrom:aConstantTable
|
|
63 |
|class nameAndType|
|
|
64 |
|
90
|
65 |
self halt.
|
|
66 |
class := self class resolve:(aConstantTable at:constantPoolIndex) from:aConstantTable.
|
1
|
67 |
nameAndType := self class resolve:(aConstantTable at:nameandTypeIndex) from:aConstantTable.
|
41
|
68 |
|
1
|
69 |
^ JavaFieldref
|
|
70 |
class:class
|
|
71 |
nameandType:nameAndType
|
|
72 |
|
|
73 |
"Created: 15.4.1996 / 16:05:50 / cg"
|
|
74 |
"Modified: 15.4.1996 / 16:26:44 / cg"
|
|
75 |
! !
|
|
76 |
|
90
|
77 |
!JavaUnresolvedFieldrefConstant class methodsFor:'documentation'!
|
1
|
78 |
|
|
79 |
version
|
90
|
80 |
^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaUnresolvedFieldrefConstant.st,v 1.5 1996/06/28 21:39:53 cg Exp $'
|
1
|
81 |
! !
|