454
|
1 |
"
|
2151
|
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger
|
454
|
3 |
|
|
4 |
This software is furnished under a license and may be used
|
|
5 |
only in accordance with the terms of that license and with the
|
|
6 |
inclusion of the above copyright notice. This software may not
|
|
7 |
be provided or otherwise made available to, or used by, any
|
|
8 |
other person. No title to or ownership of the software is
|
|
9 |
hereby transferred.
|
2151
|
10 |
"
|
713
|
11 |
"{ Package: 'stx:libjava' }"
|
|
12 |
|
1
|
13 |
JavaUnresolvedConstant subclass:#JavaUnresolvedStringConstant
|
90
|
14 |
instanceVariableNames:'stringIndex'
|
|
15 |
classVariableNames:''
|
1
|
16 |
poolDictionaries:''
|
713
|
17 |
category:'Languages-Java-Reader-Support'
|
1
|
18 |
!
|
|
19 |
|
454
|
20 |
!JavaUnresolvedStringConstant class methodsFor:'documentation'!
|
|
21 |
|
|
22 |
copyright
|
|
23 |
"
|
2151
|
24 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger
|
454
|
25 |
|
|
26 |
This software is furnished under a license and may be used
|
|
27 |
only in accordance with the terms of that license and with the
|
|
28 |
inclusion of the above copyright notice. This software may not
|
|
29 |
be provided or otherwise made available to, or used by, any
|
|
30 |
other person. No title to or ownership of the software is
|
|
31 |
hereby transferred.
|
2151
|
32 |
|
|
33 |
"
|
454
|
34 |
! !
|
1
|
35 |
|
135
|
36 |
!JavaUnresolvedStringConstant class methodsFor:'instance creation'!
|
1
|
37 |
|
90
|
38 |
pool:aPool poolIndex:index stringIndex:stringIndex
|
|
39 |
^ self new
|
|
40 |
pool:aPool poolIndex:index stringIndex:stringIndex
|
|
41 |
|
|
42 |
|
1
|
43 |
! !
|
|
44 |
|
90
|
45 |
!JavaUnresolvedStringConstant methodsFor:'accessing'!
|
37
|
46 |
|
90
|
47 |
pool:aPool poolIndex:i stringIndex:string_index
|
|
48 |
constantPool := aPool.
|
|
49 |
constantPoolIndex := i.
|
|
50 |
stringIndex := string_index.
|
37
|
51 |
|
|
52 |
! !
|
|
53 |
|
1
|
54 |
!JavaUnresolvedStringConstant methodsFor:'resolving'!
|
|
55 |
|
90
|
56 |
preResolve
|
|
57 |
|jString chars|
|
|
58 |
|
167
|
59 |
Java java_lang_String notNil ifTrue:[
|
90
|
60 |
chars := (constantPool at:stringIndex).
|
|
61 |
chars isString ifFalse:[
|
|
62 |
self halt:'should not happen'
|
|
63 |
].
|
2151
|
64 |
jString := JavaVM javaStringObjectForString:chars interned:true.
|
1
|
65 |
|
90
|
66 |
"/constantPool owner == (Java at:'java/awt/Container') ifTrue:[
|
|
67 |
"/self halt
|
|
68 |
"/].
|
|
69 |
|
|
70 |
constantPool at:constantPoolIndex put:jString.
|
|
71 |
^ jString.
|
37
|
72 |
].
|
|
73 |
|
90
|
74 |
self rememberForResolveWith:'java/lang/String'.
|
|
75 |
^ self
|
167
|
76 |
|
2151
|
77 |
"Modified: / 07-08-1997 / 21:17:23 / cg"
|
|
78 |
"Modified: / 10-08-2011 / 23:28:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
1
|
79 |
! !
|
|
80 |
|
135
|
81 |
!JavaUnresolvedStringConstant class methodsFor:'documentation'!
|
1
|
82 |
|
|
83 |
version
|
2209
|
84 |
^ '$Header: /cvs/stx/stx/libjava/JavaUnresolvedStringConstant.st,v 1.10 2011-11-24 11:19:49 cg Exp $'
|
|
85 |
!
|
|
86 |
|
|
87 |
version_CVS
|
|
88 |
^ '$Header: /cvs/stx/stx/libjava/JavaUnresolvedStringConstant.st,v 1.10 2011-11-24 11:19:49 cg Exp $'
|
2151
|
89 |
!
|
|
90 |
|
|
91 |
version_SVN
|
2209
|
92 |
^ '§Id: JavaUnresolvedStringConstant.st,v 1.9 2011/08/18 18:42:48 vrany Exp §'
|
2108
|
93 |
! !
|