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