752
|
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 |
"{ Package: 'stx:libjava' }"
|
|
13 |
|
|
14 |
JavaUnresolvedConstant subclass:#JavaUnresolvedStringConstant
|
|
15 |
instanceVariableNames:'stringIndex'
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'Languages-Java-Reader-Support'
|
|
19 |
!
|
|
20 |
|
|
21 |
!JavaUnresolvedStringConstant class methodsFor:'documentation'!
|
|
22 |
|
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 1997 by eXept Software AG
|
|
26 |
All Rights Reserved
|
|
27 |
|
|
28 |
This software is furnished under a license and may be used
|
|
29 |
only in accordance with the terms of that license and with the
|
|
30 |
inclusion of the above copyright notice. This software may not
|
|
31 |
be provided or otherwise made available to, or used by, any
|
|
32 |
other person. No title to or ownership of the software is
|
|
33 |
hereby transferred.
|
|
34 |
"
|
|
35 |
|
|
36 |
|
|
37 |
! !
|
|
38 |
|
|
39 |
!JavaUnresolvedStringConstant class methodsFor:'instance creation'!
|
|
40 |
|
|
41 |
pool:aPool poolIndex:index stringIndex:stringIndex
|
|
42 |
^ self new
|
|
43 |
pool:aPool poolIndex:index stringIndex:stringIndex
|
|
44 |
|
|
45 |
|
|
46 |
! !
|
|
47 |
|
|
48 |
!JavaUnresolvedStringConstant methodsFor:'accessing'!
|
|
49 |
|
|
50 |
pool:aPool poolIndex:i stringIndex:string_index
|
|
51 |
constantPool := aPool.
|
|
52 |
constantPoolIndex := i.
|
|
53 |
stringIndex := string_index.
|
|
54 |
|
|
55 |
! !
|
|
56 |
|
|
57 |
!JavaUnresolvedStringConstant methodsFor:'resolving'!
|
|
58 |
|
|
59 |
preResolve
|
|
60 |
|jString chars|
|
|
61 |
|
|
62 |
Java java_lang_String notNil ifTrue:[
|
|
63 |
chars := (constantPool at:stringIndex).
|
|
64 |
chars isString ifFalse:[
|
|
65 |
self halt:'should not happen'
|
|
66 |
].
|
|
67 |
jString := Java as_String:chars.
|
|
68 |
|
|
69 |
"/constantPool owner == (Java at:'java/awt/Container') ifTrue:[
|
|
70 |
"/self halt
|
|
71 |
"/].
|
|
72 |
|
|
73 |
constantPool at:constantPoolIndex put:jString.
|
|
74 |
^ jString.
|
|
75 |
].
|
|
76 |
|
|
77 |
self rememberForResolveWith:'java/lang/String'.
|
|
78 |
^ self
|
|
79 |
|
|
80 |
"Modified: 7.8.1997 / 21:17:23 / cg"
|
|
81 |
! !
|
|
82 |
|
|
83 |
!JavaUnresolvedStringConstant class methodsFor:'documentation'!
|
|
84 |
|
|
85 |
version
|
|
86 |
^ '$Id$'
|
|
87 |
!
|
|
88 |
|
|
89 |
version_SVN
|
|
90 |
^ '$Id$'
|
|
91 |
! !
|