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 |
|
1
|
17 |
JavaUnresolvedConstant subclass:#JavaUnresolvedStringConstant
|
90
|
18 |
instanceVariableNames:'stringIndex'
|
|
19 |
classVariableNames:''
|
1
|
20 |
poolDictionaries:''
|
713
|
21 |
category:'Languages-Java-Reader-Support'
|
1
|
22 |
!
|
|
23 |
|
454
|
24 |
!JavaUnresolvedStringConstant 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 |
! !
|
1
|
41 |
|
135
|
42 |
!JavaUnresolvedStringConstant class methodsFor:'instance creation'!
|
1
|
43 |
|
90
|
44 |
pool:aPool poolIndex:index stringIndex:stringIndex
|
|
45 |
^ self new
|
|
46 |
pool:aPool poolIndex:index stringIndex:stringIndex
|
|
47 |
|
|
48 |
|
1
|
49 |
! !
|
|
50 |
|
90
|
51 |
!JavaUnresolvedStringConstant methodsFor:'accessing'!
|
37
|
52 |
|
90
|
53 |
pool:aPool poolIndex:i stringIndex:string_index
|
|
54 |
constantPool := aPool.
|
|
55 |
constantPoolIndex := i.
|
|
56 |
stringIndex := string_index.
|
37
|
57 |
|
|
58 |
! !
|
|
59 |
|
1
|
60 |
!JavaUnresolvedStringConstant methodsFor:'resolving'!
|
|
61 |
|
90
|
62 |
preResolve
|
|
63 |
|jString chars|
|
|
64 |
|
167
|
65 |
Java java_lang_String notNil ifTrue:[
|
90
|
66 |
chars := (constantPool at:stringIndex).
|
|
67 |
chars isString ifFalse:[
|
|
68 |
self halt:'should not happen'
|
|
69 |
].
|
206
|
70 |
jString := Java as_String:chars.
|
1
|
71 |
|
90
|
72 |
"/constantPool owner == (Java at:'java/awt/Container') ifTrue:[
|
|
73 |
"/self halt
|
|
74 |
"/].
|
|
75 |
|
|
76 |
constantPool at:constantPoolIndex put:jString.
|
|
77 |
^ jString.
|
37
|
78 |
].
|
|
79 |
|
90
|
80 |
self rememberForResolveWith:'java/lang/String'.
|
|
81 |
^ self
|
167
|
82 |
|
206
|
83 |
"Modified: 7.8.1997 / 21:17:23 / cg"
|
1
|
84 |
! !
|
|
85 |
|
135
|
86 |
!JavaUnresolvedStringConstant class methodsFor:'documentation'!
|
1
|
87 |
|
|
88 |
version
|
713
|
89 |
^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaUnresolvedStringConstant.st,v 1.8 2002/11/22 20:11:48 cg Exp $'
|
1
|
90 |
! !
|