454
|
1 |
"
|
749
|
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger
|
|
3 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
|
|
4 |
SWING Research Group, Czech Technical University in Prague
|
|
5 |
|
|
6 |
Parts of the code written by Claus Gittinger are under following
|
|
7 |
license:
|
454
|
8 |
|
|
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.
|
749
|
15 |
|
|
16 |
Parts of the code written at SWING Reasearch Group [1] are MIT licensed:
|
|
17 |
|
|
18 |
Permission is hereby granted, free of charge, to any person
|
|
19 |
obtaining a copy of this software and associated documentation
|
|
20 |
files (the 'Software'), to deal in the Software without
|
|
21 |
restriction, including without limitation the rights to use,
|
|
22 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
23 |
copies of the Software, and to permit persons to whom the
|
|
24 |
Software is furnished to do so, subject to the following
|
|
25 |
conditions:
|
454
|
26 |
|
749
|
27 |
The above copyright notice and this permission notice shall be
|
|
28 |
included in all copies or substantial portions of the Software.
|
454
|
29 |
|
749
|
30 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
31 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
32 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
33 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
34 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
35 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
36 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
37 |
OTHER DEALINGS IN THE SOFTWARE.
|
454
|
38 |
|
749
|
39 |
[1] Code written at SWING Research Group contain a signature
|
|
40 |
of one of the above copright owners.
|
|
41 |
"
|
713
|
42 |
"{ Package: 'stx:libjava' }"
|
|
43 |
|
138
|
44 |
Object subclass:#JavaSlotIndexCache
|
|
45 |
instanceVariableNames:''
|
|
46 |
classVariableNames:'String_Slot_offset String_Slot_count String_Slot_value
|
|
47 |
Date_Slot_valueValid Date_Slot_expanded Date_Slot_tm_year
|
|
48 |
Date_Slot_tm_yday Date_Slot_tm_mon Date_Slot_tm_mday
|
|
49 |
Date_Slot_tm_hour Date_Slot_tm_min Date_Slot_tm_sec
|
|
50 |
Date_Slot_tm_millis Date_Slot_tm_isdst Date_Slot_tm_wday
|
|
51 |
Date_Slot_value Graphics_Slot_pDrawable Graphics_Slot_touched
|
|
52 |
Graphics_Slot_color Color_Slot_pData Color_Slot_value'
|
|
53 |
poolDictionaries:''
|
713
|
54 |
category:'Languages-Java-Support'
|
138
|
55 |
!
|
|
56 |
|
454
|
57 |
!JavaSlotIndexCache class methodsFor:'documentation'!
|
|
58 |
|
|
59 |
copyright
|
|
60 |
"
|
749
|
61 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger
|
|
62 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
|
|
63 |
SWING Research Group, Czech Technical University in Prague
|
|
64 |
|
|
65 |
Parts of the code written by Claus Gittinger are under following
|
|
66 |
license:
|
454
|
67 |
|
|
68 |
This software is furnished under a license and may be used
|
|
69 |
only in accordance with the terms of that license and with the
|
|
70 |
inclusion of the above copyright notice. This software may not
|
|
71 |
be provided or otherwise made available to, or used by, any
|
|
72 |
other person. No title to or ownership of the software is
|
|
73 |
hereby transferred.
|
749
|
74 |
|
|
75 |
Parts of the code written at SWING Reasearch Group [1] are MIT licensed:
|
|
76 |
|
|
77 |
Permission is hereby granted, free of charge, to any person
|
|
78 |
obtaining a copy of this software and associated documentation
|
|
79 |
files (the 'Software'), to deal in the Software without
|
|
80 |
restriction, including without limitation the rights to use,
|
|
81 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
82 |
copies of the Software, and to permit persons to whom the
|
|
83 |
Software is furnished to do so, subject to the following
|
|
84 |
conditions:
|
454
|
85 |
|
749
|
86 |
The above copyright notice and this permission notice shall be
|
|
87 |
included in all copies or substantial portions of the Software.
|
454
|
88 |
|
749
|
89 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
90 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
91 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
92 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
93 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
94 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
95 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
96 |
OTHER DEALINGS IN THE SOFTWARE.
|
|
97 |
|
|
98 |
[1] Code written at SWING Research Group contain a signature
|
|
99 |
of one of the above copright owners.
|
|
100 |
|
|
101 |
"
|
454
|
102 |
! !
|
138
|
103 |
|
|
104 |
!JavaSlotIndexCache class methodsFor:'queries'!
|
|
105 |
|
|
106 |
color_slot_pData_from:color
|
|
107 |
Color_Slot_pData isNil ifTrue:[
|
|
108 |
Color_Slot_pData := color class instVarOffsetOf:'pData'
|
|
109 |
].
|
|
110 |
^ Color_Slot_pData
|
|
111 |
|
|
112 |
"Created: 8.2.1997 / 13:53:16 / cg"
|
|
113 |
!
|
|
114 |
|
|
115 |
color_slot_value_from:color
|
|
116 |
Color_Slot_value isNil ifTrue:[
|
|
117 |
Color_Slot_value := color class instVarOffsetOf:'value'
|
|
118 |
].
|
|
119 |
^ Color_Slot_value
|
|
120 |
|
|
121 |
"Created: 8.2.1997 / 13:54:48 / cg"
|
|
122 |
!
|
|
123 |
|
|
124 |
date_slot_expanded
|
|
125 |
Date_Slot_expanded isNil ifTrue:[
|
|
126 |
Date_Slot_expanded := (Java at:'java.util.Date') instVarOffsetOf:'expanded'
|
|
127 |
].
|
|
128 |
^ Date_Slot_expanded
|
|
129 |
|
|
130 |
"
|
|
131 |
JavaSlotIndexCache date_slot_expanded
|
|
132 |
"
|
|
133 |
|
|
134 |
"Created: 8.2.1997 / 13:28:18 / cg"
|
|
135 |
!
|
|
136 |
|
|
137 |
date_slot_tm_hour
|
|
138 |
Date_Slot_tm_hour isNil ifTrue:[
|
|
139 |
Date_Slot_tm_hour := (Java at:'java.util.Date') instVarOffsetOf:'tm_hour'
|
|
140 |
].
|
|
141 |
^ Date_Slot_tm_hour
|
|
142 |
|
|
143 |
"
|
|
144 |
JavaSlotIndexCache date_slot_tm_hour
|
|
145 |
"
|
|
146 |
|
|
147 |
"Created: 8.2.1997 / 13:29:24 / cg"
|
|
148 |
!
|
|
149 |
|
|
150 |
date_slot_tm_isdst
|
|
151 |
Date_Slot_tm_isdst isNil ifTrue:[
|
|
152 |
Date_Slot_tm_isdst := (Java at:'java.util.Date') instVarOffsetOf:'tm_isdst'
|
|
153 |
].
|
|
154 |
^ Date_Slot_tm_isdst
|
|
155 |
|
|
156 |
"
|
|
157 |
JavaSlotIndexCache date_slot_tm_isdst
|
|
158 |
"
|
|
159 |
|
|
160 |
"Created: 8.2.1997 / 13:39:00 / cg"
|
|
161 |
!
|
|
162 |
|
|
163 |
date_slot_tm_mday
|
|
164 |
Date_Slot_tm_mday isNil ifTrue:[
|
|
165 |
Date_Slot_tm_mday := (Java at:'java.util.Date') instVarOffsetOf:'tm_mday'
|
|
166 |
].
|
|
167 |
^ Date_Slot_tm_mday
|
|
168 |
|
|
169 |
"
|
|
170 |
JavaSlotIndexCache date_slot_tm_mday
|
|
171 |
"
|
|
172 |
|
|
173 |
"Created: 8.2.1997 / 13:29:14 / cg"
|
|
174 |
!
|
|
175 |
|
|
176 |
date_slot_tm_millis
|
|
177 |
Date_Slot_tm_millis isNil ifTrue:[
|
|
178 |
Date_Slot_tm_millis := (Java at:'java.util.Date') instVarOffsetOf:'tm_millis'
|
|
179 |
].
|
|
180 |
^ Date_Slot_tm_millis
|
|
181 |
|
|
182 |
"
|
|
183 |
JavaSlotIndexCache date_slot_tm_millis
|
|
184 |
"
|
|
185 |
|
|
186 |
"Created: 8.2.1997 / 13:29:43 / cg"
|
|
187 |
!
|
|
188 |
|
|
189 |
date_slot_tm_min
|
|
190 |
Date_Slot_tm_min isNil ifTrue:[
|
|
191 |
Date_Slot_tm_min := (Java at:'java.util.Date') instVarOffsetOf:'tm_min'
|
|
192 |
].
|
|
193 |
^ Date_Slot_tm_min
|
|
194 |
|
|
195 |
"
|
|
196 |
JavaSlotIndexCache date_slot_tm_min
|
|
197 |
"
|
|
198 |
|
|
199 |
"Created: 8.2.1997 / 13:29:32 / cg"
|
|
200 |
!
|
|
201 |
|
|
202 |
date_slot_tm_mon
|
|
203 |
Date_Slot_tm_mon isNil ifTrue:[
|
|
204 |
Date_Slot_tm_mon := (Java at:'java.util.Date') instVarOffsetOf:'tm_mon'
|
|
205 |
].
|
|
206 |
^ Date_Slot_tm_mon
|
|
207 |
|
|
208 |
"
|
|
209 |
JavaSlotIndexCache date_slot_tm_mon
|
|
210 |
"
|
|
211 |
|
|
212 |
"Created: 8.2.1997 / 13:29:05 / cg"
|
|
213 |
!
|
|
214 |
|
|
215 |
date_slot_tm_sec
|
|
216 |
Date_Slot_tm_sec isNil ifTrue:[
|
|
217 |
Date_Slot_tm_sec := (Java at:'java.util.Date') instVarOffsetOf:'tm_sec'
|
|
218 |
].
|
|
219 |
^ Date_Slot_tm_sec
|
|
220 |
|
|
221 |
"
|
|
222 |
JavaSlotIndexCache date_slot_tm_sec
|
|
223 |
"
|
|
224 |
|
|
225 |
"Created: 8.2.1997 / 13:29:37 / cg"
|
|
226 |
!
|
|
227 |
|
|
228 |
date_slot_tm_wday
|
|
229 |
Date_Slot_tm_wday isNil ifTrue:[
|
|
230 |
Date_Slot_tm_wday := (Java at:'java.util.Date') instVarOffsetOf:'tm_wday'
|
|
231 |
].
|
|
232 |
^ Date_Slot_tm_wday
|
|
233 |
|
|
234 |
"
|
|
235 |
JavaSlotIndexCache date_slot_tm_wday
|
|
236 |
"
|
|
237 |
|
|
238 |
"Created: 8.2.1997 / 13:29:14 / cg"
|
|
239 |
"Modified: 8.2.1997 / 13:40:12 / cg"
|
|
240 |
!
|
|
241 |
|
|
242 |
date_slot_tm_yday
|
|
243 |
Date_Slot_tm_yday isNil ifTrue:[
|
|
244 |
Date_Slot_tm_yday := (Java at:'java.util.Date') instVarOffsetOf:'tm_yday'
|
|
245 |
].
|
|
246 |
^ Date_Slot_tm_yday
|
|
247 |
|
|
248 |
"
|
|
249 |
JavaSlotIndexCache date_slot_tm_yday
|
|
250 |
"
|
|
251 |
|
|
252 |
"Created: 8.2.1997 / 13:29:14 / cg"
|
|
253 |
"Modified: 8.2.1997 / 13:38:30 / cg"
|
|
254 |
!
|
|
255 |
|
|
256 |
date_slot_tm_year
|
|
257 |
Date_Slot_tm_year isNil ifTrue:[
|
|
258 |
Date_Slot_tm_year := (Java at:'java.util.Date') instVarOffsetOf:'tm_year'
|
|
259 |
].
|
|
260 |
^ Date_Slot_tm_year
|
|
261 |
|
|
262 |
"
|
|
263 |
JavaSlotIndexCache date_slot_tm_year
|
|
264 |
"
|
|
265 |
|
|
266 |
"Created: 8.2.1997 / 13:28:52 / cg"
|
|
267 |
!
|
|
268 |
|
|
269 |
date_slot_value
|
|
270 |
Date_Slot_value isNil ifTrue:[
|
|
271 |
Date_Slot_value := (Java at:'java.util.Date') instVarOffsetOf:'value'
|
|
272 |
].
|
|
273 |
^ Date_Slot_value
|
|
274 |
|
|
275 |
"
|
|
276 |
JavaSlotIndexCache date_slot_value
|
|
277 |
"
|
|
278 |
|
|
279 |
"Created: 8.2.1997 / 13:30:30 / cg"
|
|
280 |
"Modified: 8.2.1997 / 13:30:51 / cg"
|
|
281 |
!
|
|
282 |
|
|
283 |
date_slot_valueValid
|
|
284 |
Date_Slot_valueValid isNil ifTrue:[
|
|
285 |
Date_Slot_valueValid := (Java at:'java.util.Date') instVarOffsetOf:'valueValid'
|
|
286 |
].
|
|
287 |
^ Date_Slot_valueValid
|
|
288 |
|
|
289 |
"
|
|
290 |
JavaSlotIndexCache date_slot_valueValid
|
|
291 |
"
|
|
292 |
|
|
293 |
"Created: 8.2.1997 / 13:25:46 / cg"
|
|
294 |
"Modified: 8.2.1997 / 13:27:47 / cg"
|
|
295 |
!
|
|
296 |
|
|
297 |
graphics_slot_color_from:graphics
|
|
298 |
Graphics_Slot_color isNil ifTrue:[
|
|
299 |
Graphics_Slot_color := graphics class instVarOffsetOf:'color'
|
|
300 |
].
|
|
301 |
^ Graphics_Slot_color
|
|
302 |
|
|
303 |
"Created: 8.2.1997 / 13:53:56 / cg"
|
|
304 |
!
|
|
305 |
|
|
306 |
graphics_slot_pDrawable_from:graphics
|
|
307 |
Graphics_Slot_pDrawable isNil ifTrue:[
|
|
308 |
Graphics_Slot_pDrawable := graphics class instVarOffsetOf:'pDrawable'
|
|
309 |
].
|
|
310 |
^ Graphics_Slot_pDrawable
|
|
311 |
|
|
312 |
"Created: 8.2.1997 / 13:49:42 / cg"
|
|
313 |
!
|
|
314 |
|
|
315 |
graphics_slot_touched_from:graphics
|
|
316 |
Graphics_Slot_touched isNil ifTrue:[
|
|
317 |
Graphics_Slot_touched := graphics class instVarOffsetOf:'touched'
|
|
318 |
].
|
|
319 |
^ Graphics_Slot_touched
|
|
320 |
|
|
321 |
"Created: 8.2.1997 / 13:50:57 / cg"
|
|
322 |
!
|
|
323 |
|
|
324 |
string_slot_count
|
|
325 |
String_Slot_count isNil ifTrue:[
|
|
326 |
String_Slot_count := (Java at:'java.lang.String') instVarOffsetOf:'count'
|
|
327 |
].
|
|
328 |
^ String_Slot_count
|
|
329 |
|
|
330 |
"
|
|
331 |
JavaSlotIndexCache string_slot_count
|
|
332 |
"
|
|
333 |
|
|
334 |
"Created: 8.2.1997 / 13:19:06 / cg"
|
|
335 |
!
|
|
336 |
|
|
337 |
string_slot_offset
|
|
338 |
String_Slot_offset isNil ifTrue:[
|
|
339 |
String_Slot_offset := (Java at:'java.lang.String') instVarOffsetOf:'offset'
|
|
340 |
].
|
|
341 |
^ String_Slot_offset
|
|
342 |
|
|
343 |
"
|
|
344 |
JavaSlotIndexCache string_slot_offset
|
|
345 |
"
|
|
346 |
|
|
347 |
"Modified: 8.2.1997 / 13:18:53 / cg"
|
|
348 |
!
|
|
349 |
|
|
350 |
string_slot_value
|
|
351 |
String_Slot_value isNil ifTrue:[
|
|
352 |
String_Slot_value := (Java at:'java.lang.String') instVarOffsetOf:'value'
|
|
353 |
].
|
|
354 |
^ String_Slot_value
|
|
355 |
|
|
356 |
"
|
|
357 |
JavaSlotIndexCache string_slot_value
|
|
358 |
"
|
|
359 |
|
|
360 |
"Created: 8.2.1997 / 13:19:14 / cg"
|
|
361 |
! !
|
|
362 |
|
|
363 |
!JavaSlotIndexCache class methodsFor:'documentation'!
|
|
364 |
|
|
365 |
version
|
749
|
366 |
^ '$Id: JavaSlotIndexCache.st,v 1.4 2011/08/18 18:42:48 vrany Exp $'
|
|
367 |
!
|
|
368 |
|
|
369 |
version_SVN
|
|
370 |
^ '$Id: JavaSlotIndexCache.st,v 1.4 2011/08/18 18:42:48 vrany Exp $'
|
|
371 |
! ! |