author | hlopkmar |
Wed, 12 Dec 2012 23:26:59 +0000 | |
branch | development |
changeset 1869 | 0ae14ac1c9af |
parent 1864 | 60a8dc26c8c6 |
child 2069 | 75d40b7b986f |
permissions | -rw-r--r-- |
752 | 1 |
" |
877 | 2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
1152 | 3 |
|
1155 | 4 |
New code and modifications done at SWING Research Group [1]: |
1152 | 5 |
|
877 | 6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
7 |
SWING Research Group, Czech Technical University in Prague |
|
8 |
||
752 | 9 |
This software is furnished under a license and may be used |
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
877 | 15 |
|
1155 | 16 |
[1] Code written at SWING Research Group contains a signature |
17 |
of one of the above copright owners. For exact set of such code, |
|
18 |
see the differences between this version and version stx:libjava |
|
1152 | 19 |
as of 1.9.2010 |
752 | 20 |
" |
21 |
"{ Package: 'stx:libjava' }" |
|
22 |
||
23 |
JavaUnresolvedConstant subclass:#JavaUnresolvedStringConstant |
|
24 |
instanceVariableNames:'stringIndex' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'Languages-Java-Reader-Support' |
|
28 |
! |
|
29 |
||
30 |
!JavaUnresolvedStringConstant class methodsFor:'documentation'! |
|
31 |
||
32 |
copyright |
|
33 |
" |
|
877 | 34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
1152 | 35 |
|
1155 | 36 |
New code and modifications done at SWING Research Group [1]: |
1152 | 37 |
|
877 | 38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
39 |
SWING Research Group, Czech Technical University in Prague |
|
40 |
||
752 | 41 |
This software is furnished under a license and may be used |
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
877 | 47 |
|
1155 | 48 |
[1] Code written at SWING Research Group contains a signature |
49 |
of one of the above copright owners. For exact set of such code, |
|
50 |
see the differences between this version and version stx:libjava |
|
1152 | 51 |
as of 1.9.2010 |
877 | 52 |
|
53 |
" |
|
752 | 54 |
! ! |
55 |
||
56 |
!JavaUnresolvedStringConstant class methodsFor:'instance creation'! |
|
57 |
||
58 |
pool:aPool poolIndex:index stringIndex:stringIndex |
|
59 |
^ self new |
|
60 |
pool:aPool poolIndex:index stringIndex:stringIndex |
|
61 |
||
62 |
||
63 |
! ! |
|
64 |
||
65 |
!JavaUnresolvedStringConstant methodsFor:'accessing'! |
|
66 |
||
67 |
pool:aPool poolIndex:i stringIndex:string_index |
|
68 |
constantPool := aPool. |
|
69 |
constantPoolIndex := i. |
|
70 |
stringIndex := string_index. |
|
71 |
||
72 |
! ! |
|
73 |
||
74 |
!JavaUnresolvedStringConstant methodsFor:'resolving'! |
|
75 |
||
76 |
preResolve |
|
77 |
|jString chars| |
|
78 |
||
79 |
Java java_lang_String notNil ifTrue:[ |
|
80 |
chars := (constantPool at:stringIndex). |
|
81 |
chars isString ifFalse:[ |
|
82 |
self halt:'should not happen' |
|
83 |
]. |
|
906
fea23aa2b228
Few more fixes and workarounds for Saxon 6.5.5: the Othello example works fine...
vranyj1
parents:
877
diff
changeset
|
84 |
jString := JavaVM javaStringObjectForString:chars interned:true. |
752 | 85 |
|
86 |
"/constantPool owner == (Java at:'java/awt/Container') ifTrue:[ |
|
87 |
"/self halt |
|
88 |
"/]. |
|
89 |
||
90 |
constantPool at:constantPoolIndex put:jString. |
|
91 |
^ jString. |
|
92 |
]. |
|
93 |
||
94 |
self rememberForResolveWith:'java/lang/String'. |
|
95 |
^ self |
|
96 |
||
906
fea23aa2b228
Few more fixes and workarounds for Saxon 6.5.5: the Othello example works fine...
vranyj1
parents:
877
diff
changeset
|
97 |
"Modified: / 07-08-1997 / 21:17:23 / cg" |
fea23aa2b228
Few more fixes and workarounds for Saxon 6.5.5: the Othello example works fine...
vranyj1
parents:
877
diff
changeset
|
98 |
"Modified: / 10-08-2011 / 23:28:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
752 | 99 |
! ! |
100 |
||
101 |
!JavaUnresolvedStringConstant class methodsFor:'documentation'! |
|
102 |
||
103 |
version |
|
1864 | 104 |
^ '$Header$' |
105 |
! |
|
106 |
||
107 |
version_HG |
|
108 |
||
109 |
^ '$Changeset: <not expanded> $' |
|
752 | 110 |
! |
111 |
||
112 |
version_SVN |
|
1864 | 113 |
^ '§Id§' |
1152 | 114 |
! ! |