author | mawalch |
Thu, 08 Jun 2017 14:04:24 +0200 | |
branch | cvs_MAIN |
changeset 3724 | 8184529b4866 |
parent 3650 | b3b4639d0883 |
permissions | -rw-r--r-- |
454 | 1 |
" |
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
454 | 3 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
4 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
5 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
6 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
7 |
SWING Research Group, Czech Technical University in Prague |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
8 |
|
454 | 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. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
15 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
16 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
17 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
18 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
19 |
as of 1.9.2010 |
2151 | 20 |
" |
713 | 21 |
"{ Package: 'stx:libjava' }" |
22 |
||
3650 | 23 |
"{ NameSpace: Smalltalk }" |
24 |
||
138 | 25 |
Object subclass:#JavaSlotIndexCache |
26 |
instanceVariableNames:'' |
|
27 |
classVariableNames:'String_Slot_offset String_Slot_count String_Slot_value |
|
28 |
Date_Slot_valueValid Date_Slot_expanded Date_Slot_tm_year |
|
29 |
Date_Slot_tm_yday Date_Slot_tm_mon Date_Slot_tm_mday |
|
30 |
Date_Slot_tm_hour Date_Slot_tm_min Date_Slot_tm_sec |
|
31 |
Date_Slot_tm_millis Date_Slot_tm_isdst Date_Slot_tm_wday |
|
32 |
Date_Slot_value Graphics_Slot_pDrawable Graphics_Slot_touched |
|
33 |
Graphics_Slot_color Color_Slot_pData Color_Slot_value' |
|
34 |
poolDictionaries:'' |
|
713 | 35 |
category:'Languages-Java-Support' |
138 | 36 |
! |
37 |
||
454 | 38 |
!JavaSlotIndexCache class methodsFor:'documentation'! |
39 |
||
40 |
copyright |
|
41 |
" |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
42 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
454 | 43 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
44 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
45 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
46 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
47 |
SWING Research Group, Czech Technical University in Prague |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
48 |
|
454 | 49 |
This software is furnished under a license and may be used |
50 |
only in accordance with the terms of that license and with the |
|
51 |
inclusion of the above copyright notice. This software may not |
|
52 |
be provided or otherwise made available to, or used by, any |
|
53 |
other person. No title to or ownership of the software is |
|
54 |
hereby transferred. |
|
2151 | 55 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
56 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
57 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
58 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
59 |
as of 1.9.2010 |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
60 |
|
2151 | 61 |
" |
454 | 62 |
! ! |
138 | 63 |
|
64 |
!JavaSlotIndexCache class methodsFor:'queries'! |
|
65 |
||
66 |
color_slot_pData_from:color |
|
67 |
Color_Slot_pData isNil ifTrue:[ |
|
3650 | 68 |
Color_Slot_pData := color class instVarIndexFor:'pData' |
138 | 69 |
]. |
70 |
^ Color_Slot_pData |
|
71 |
||
72 |
"Created: 8.2.1997 / 13:53:16 / cg" |
|
73 |
! |
|
74 |
||
75 |
color_slot_value_from:color |
|
76 |
Color_Slot_value isNil ifTrue:[ |
|
3650 | 77 |
Color_Slot_value := color class instVarIndexFor:'value' |
138 | 78 |
]. |
79 |
^ Color_Slot_value |
|
80 |
||
81 |
"Created: 8.2.1997 / 13:54:48 / cg" |
|
82 |
! |
|
83 |
||
84 |
date_slot_expanded |
|
85 |
Date_Slot_expanded isNil ifTrue:[ |
|
3650 | 86 |
Date_Slot_expanded := (Java at:'java.util.Date') instVarIndexFor:'expanded' |
138 | 87 |
]. |
88 |
^ Date_Slot_expanded |
|
89 |
||
90 |
" |
|
91 |
JavaSlotIndexCache date_slot_expanded |
|
92 |
" |
|
93 |
||
94 |
"Created: 8.2.1997 / 13:28:18 / cg" |
|
95 |
! |
|
96 |
||
97 |
date_slot_tm_hour |
|
98 |
Date_Slot_tm_hour isNil ifTrue:[ |
|
3650 | 99 |
Date_Slot_tm_hour := (Java at:'java.util.Date') instVarIndexFor:'tm_hour' |
138 | 100 |
]. |
101 |
^ Date_Slot_tm_hour |
|
102 |
||
103 |
" |
|
104 |
JavaSlotIndexCache date_slot_tm_hour |
|
105 |
" |
|
106 |
||
107 |
"Created: 8.2.1997 / 13:29:24 / cg" |
|
108 |
! |
|
109 |
||
110 |
date_slot_tm_isdst |
|
111 |
Date_Slot_tm_isdst isNil ifTrue:[ |
|
3650 | 112 |
Date_Slot_tm_isdst := (Java at:'java.util.Date') instVarIndexFor:'tm_isdst' |
138 | 113 |
]. |
114 |
^ Date_Slot_tm_isdst |
|
115 |
||
116 |
" |
|
117 |
JavaSlotIndexCache date_slot_tm_isdst |
|
118 |
" |
|
119 |
||
120 |
"Created: 8.2.1997 / 13:39:00 / cg" |
|
121 |
! |
|
122 |
||
123 |
date_slot_tm_mday |
|
124 |
Date_Slot_tm_mday isNil ifTrue:[ |
|
3650 | 125 |
Date_Slot_tm_mday := (Java at:'java.util.Date') instVarIndexFor:'tm_mday' |
138 | 126 |
]. |
127 |
^ Date_Slot_tm_mday |
|
128 |
||
129 |
" |
|
130 |
JavaSlotIndexCache date_slot_tm_mday |
|
131 |
" |
|
132 |
||
133 |
"Created: 8.2.1997 / 13:29:14 / cg" |
|
134 |
! |
|
135 |
||
136 |
date_slot_tm_millis |
|
137 |
Date_Slot_tm_millis isNil ifTrue:[ |
|
3650 | 138 |
Date_Slot_tm_millis := (Java at:'java.util.Date') instVarIndexFor:'tm_millis' |
138 | 139 |
]. |
140 |
^ Date_Slot_tm_millis |
|
141 |
||
142 |
" |
|
143 |
JavaSlotIndexCache date_slot_tm_millis |
|
144 |
" |
|
145 |
||
146 |
"Created: 8.2.1997 / 13:29:43 / cg" |
|
147 |
! |
|
148 |
||
149 |
date_slot_tm_min |
|
150 |
Date_Slot_tm_min isNil ifTrue:[ |
|
3650 | 151 |
Date_Slot_tm_min := (Java at:'java.util.Date') instVarIndexFor:'tm_min' |
138 | 152 |
]. |
153 |
^ Date_Slot_tm_min |
|
154 |
||
155 |
" |
|
156 |
JavaSlotIndexCache date_slot_tm_min |
|
157 |
" |
|
158 |
||
159 |
"Created: 8.2.1997 / 13:29:32 / cg" |
|
160 |
! |
|
161 |
||
162 |
date_slot_tm_mon |
|
163 |
Date_Slot_tm_mon isNil ifTrue:[ |
|
3650 | 164 |
Date_Slot_tm_mon := (Java at:'java.util.Date') instVarIndexFor:'tm_mon' |
138 | 165 |
]. |
166 |
^ Date_Slot_tm_mon |
|
167 |
||
168 |
" |
|
169 |
JavaSlotIndexCache date_slot_tm_mon |
|
170 |
" |
|
171 |
||
172 |
"Created: 8.2.1997 / 13:29:05 / cg" |
|
173 |
! |
|
174 |
||
175 |
date_slot_tm_sec |
|
176 |
Date_Slot_tm_sec isNil ifTrue:[ |
|
3650 | 177 |
Date_Slot_tm_sec := (Java at:'java.util.Date') instVarIndexFor:'tm_sec' |
138 | 178 |
]. |
179 |
^ Date_Slot_tm_sec |
|
180 |
||
181 |
" |
|
182 |
JavaSlotIndexCache date_slot_tm_sec |
|
183 |
" |
|
184 |
||
185 |
"Created: 8.2.1997 / 13:29:37 / cg" |
|
186 |
! |
|
187 |
||
188 |
date_slot_tm_wday |
|
189 |
Date_Slot_tm_wday isNil ifTrue:[ |
|
3650 | 190 |
Date_Slot_tm_wday := (Java at:'java.util.Date') instVarIndexFor:'tm_wday' |
138 | 191 |
]. |
192 |
^ Date_Slot_tm_wday |
|
193 |
||
194 |
" |
|
195 |
JavaSlotIndexCache date_slot_tm_wday |
|
196 |
" |
|
197 |
||
198 |
"Created: 8.2.1997 / 13:29:14 / cg" |
|
199 |
"Modified: 8.2.1997 / 13:40:12 / cg" |
|
200 |
! |
|
201 |
||
202 |
date_slot_tm_yday |
|
203 |
Date_Slot_tm_yday isNil ifTrue:[ |
|
3650 | 204 |
Date_Slot_tm_yday := (Java at:'java.util.Date') instVarIndexFor:'tm_yday' |
138 | 205 |
]. |
206 |
^ Date_Slot_tm_yday |
|
207 |
||
208 |
" |
|
209 |
JavaSlotIndexCache date_slot_tm_yday |
|
210 |
" |
|
211 |
||
212 |
"Created: 8.2.1997 / 13:29:14 / cg" |
|
213 |
"Modified: 8.2.1997 / 13:38:30 / cg" |
|
214 |
! |
|
215 |
||
216 |
date_slot_tm_year |
|
217 |
Date_Slot_tm_year isNil ifTrue:[ |
|
3650 | 218 |
Date_Slot_tm_year := (Java at:'java.util.Date') instVarIndexFor:'tm_year' |
138 | 219 |
]. |
220 |
^ Date_Slot_tm_year |
|
221 |
||
222 |
" |
|
223 |
JavaSlotIndexCache date_slot_tm_year |
|
224 |
" |
|
225 |
||
226 |
"Created: 8.2.1997 / 13:28:52 / cg" |
|
227 |
! |
|
228 |
||
229 |
date_slot_value |
|
230 |
Date_Slot_value isNil ifTrue:[ |
|
3650 | 231 |
Date_Slot_value := (Java at:'java.util.Date') instVarIndexFor:'value' |
138 | 232 |
]. |
233 |
^ Date_Slot_value |
|
234 |
||
235 |
" |
|
236 |
JavaSlotIndexCache date_slot_value |
|
237 |
" |
|
238 |
||
239 |
"Created: 8.2.1997 / 13:30:30 / cg" |
|
240 |
"Modified: 8.2.1997 / 13:30:51 / cg" |
|
241 |
! |
|
242 |
||
243 |
date_slot_valueValid |
|
244 |
Date_Slot_valueValid isNil ifTrue:[ |
|
3650 | 245 |
Date_Slot_valueValid := (Java at:'java.util.Date') instVarIndexFor:'valueValid' |
138 | 246 |
]. |
247 |
^ Date_Slot_valueValid |
|
248 |
||
249 |
" |
|
250 |
JavaSlotIndexCache date_slot_valueValid |
|
251 |
" |
|
252 |
||
253 |
"Created: 8.2.1997 / 13:25:46 / cg" |
|
254 |
"Modified: 8.2.1997 / 13:27:47 / cg" |
|
255 |
! |
|
256 |
||
257 |
graphics_slot_color_from:graphics |
|
258 |
Graphics_Slot_color isNil ifTrue:[ |
|
3650 | 259 |
Graphics_Slot_color := graphics class instVarIndexFor:'color' |
138 | 260 |
]. |
261 |
^ Graphics_Slot_color |
|
262 |
||
263 |
"Created: 8.2.1997 / 13:53:56 / cg" |
|
264 |
! |
|
265 |
||
266 |
graphics_slot_pDrawable_from:graphics |
|
267 |
Graphics_Slot_pDrawable isNil ifTrue:[ |
|
3650 | 268 |
Graphics_Slot_pDrawable := graphics class instVarIndexFor:'pDrawable' |
138 | 269 |
]. |
270 |
^ Graphics_Slot_pDrawable |
|
271 |
||
272 |
"Created: 8.2.1997 / 13:49:42 / cg" |
|
273 |
! |
|
274 |
||
275 |
graphics_slot_touched_from:graphics |
|
276 |
Graphics_Slot_touched isNil ifTrue:[ |
|
3650 | 277 |
Graphics_Slot_touched := graphics class instVarIndexFor:'touched' |
138 | 278 |
]. |
279 |
^ Graphics_Slot_touched |
|
280 |
||
281 |
"Created: 8.2.1997 / 13:50:57 / cg" |
|
282 |
! |
|
283 |
||
284 |
string_slot_count |
|
285 |
String_Slot_count isNil ifTrue:[ |
|
3650 | 286 |
String_Slot_count := (Java at:'java.lang.String') instVarIndexFor:'count' |
138 | 287 |
]. |
288 |
^ String_Slot_count |
|
289 |
||
290 |
" |
|
291 |
JavaSlotIndexCache string_slot_count |
|
292 |
" |
|
293 |
||
294 |
"Created: 8.2.1997 / 13:19:06 / cg" |
|
295 |
! |
|
296 |
||
297 |
string_slot_offset |
|
298 |
String_Slot_offset isNil ifTrue:[ |
|
3650 | 299 |
String_Slot_offset := (Java at:'java.lang.String') instVarIndexFor:'offset' |
138 | 300 |
]. |
301 |
^ String_Slot_offset |
|
302 |
||
303 |
" |
|
304 |
JavaSlotIndexCache string_slot_offset |
|
305 |
" |
|
306 |
||
307 |
"Modified: 8.2.1997 / 13:18:53 / cg" |
|
308 |
! |
|
309 |
||
310 |
string_slot_value |
|
311 |
String_Slot_value isNil ifTrue:[ |
|
3650 | 312 |
String_Slot_value := (Java at:'java.lang.String') instVarIndexFor:'value' |
138 | 313 |
]. |
314 |
^ String_Slot_value |
|
315 |
||
316 |
" |
|
317 |
JavaSlotIndexCache string_slot_value |
|
318 |
" |
|
319 |
||
320 |
"Created: 8.2.1997 / 13:19:14 / cg" |
|
321 |
! ! |
|
322 |
||
323 |
!JavaSlotIndexCache class methodsFor:'documentation'! |
|
324 |
||
325 |
version |
|
3650 | 326 |
^ '$Header$' |
2248 | 327 |
! |
328 |
||
329 |
version_CVS |
|
3650 | 330 |
^ '$Header$' |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
331 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
332 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
333 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
334 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
335 |
^ '$Changeset: <not expanded> $' |
2151 | 336 |
! |
337 |
||
338 |
version_SVN |
|
3650 | 339 |
^ '$Id$' |
2108 | 340 |
! ! |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
341 |