author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 08 Oct 2013 10:02:41 +0100 | |
branch | development |
changeset 2811 | 8542f6311dcc |
parent 2731 | 13f5be2bf83b |
child 3324 | a58245c0e83a |
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 |
|
62 |
!JavaSlotIndexCache class methodsFor:'queries'! |
|
63 |
||
64 |
color_slot_pData_from:color |
|
65 |
Color_Slot_pData isNil ifTrue:[ |
|
66 |
Color_Slot_pData := color class instVarOffsetOf:'pData' |
|
67 |
]. |
|
68 |
^ Color_Slot_pData |
|
69 |
||
70 |
"Created: 8.2.1997 / 13:53:16 / cg" |
|
71 |
! |
|
72 |
||
73 |
color_slot_value_from:color |
|
74 |
Color_Slot_value isNil ifTrue:[ |
|
75 |
Color_Slot_value := color class instVarOffsetOf:'value' |
|
76 |
]. |
|
77 |
^ Color_Slot_value |
|
78 |
||
79 |
"Created: 8.2.1997 / 13:54:48 / cg" |
|
80 |
! |
|
81 |
||
82 |
date_slot_expanded |
|
83 |
Date_Slot_expanded isNil ifTrue:[ |
|
84 |
Date_Slot_expanded := (Java at:'java.util.Date') instVarOffsetOf:'expanded' |
|
85 |
]. |
|
86 |
^ Date_Slot_expanded |
|
87 |
||
88 |
" |
|
89 |
JavaSlotIndexCache date_slot_expanded |
|
90 |
" |
|
91 |
||
92 |
"Created: 8.2.1997 / 13:28:18 / cg" |
|
93 |
! |
|
94 |
||
95 |
date_slot_tm_hour |
|
96 |
Date_Slot_tm_hour isNil ifTrue:[ |
|
97 |
Date_Slot_tm_hour := (Java at:'java.util.Date') instVarOffsetOf:'tm_hour' |
|
98 |
]. |
|
99 |
^ Date_Slot_tm_hour |
|
100 |
||
101 |
" |
|
102 |
JavaSlotIndexCache date_slot_tm_hour |
|
103 |
" |
|
104 |
||
105 |
"Created: 8.2.1997 / 13:29:24 / cg" |
|
106 |
! |
|
107 |
||
108 |
date_slot_tm_isdst |
|
109 |
Date_Slot_tm_isdst isNil ifTrue:[ |
|
110 |
Date_Slot_tm_isdst := (Java at:'java.util.Date') instVarOffsetOf:'tm_isdst' |
|
111 |
]. |
|
112 |
^ Date_Slot_tm_isdst |
|
113 |
||
114 |
" |
|
115 |
JavaSlotIndexCache date_slot_tm_isdst |
|
116 |
" |
|
117 |
||
118 |
"Created: 8.2.1997 / 13:39:00 / cg" |
|
119 |
! |
|
120 |
||
121 |
date_slot_tm_mday |
|
122 |
Date_Slot_tm_mday isNil ifTrue:[ |
|
123 |
Date_Slot_tm_mday := (Java at:'java.util.Date') instVarOffsetOf:'tm_mday' |
|
124 |
]. |
|
125 |
^ Date_Slot_tm_mday |
|
126 |
||
127 |
" |
|
128 |
JavaSlotIndexCache date_slot_tm_mday |
|
129 |
" |
|
130 |
||
131 |
"Created: 8.2.1997 / 13:29:14 / cg" |
|
132 |
! |
|
133 |
||
134 |
date_slot_tm_millis |
|
135 |
Date_Slot_tm_millis isNil ifTrue:[ |
|
136 |
Date_Slot_tm_millis := (Java at:'java.util.Date') instVarOffsetOf:'tm_millis' |
|
137 |
]. |
|
138 |
^ Date_Slot_tm_millis |
|
139 |
||
140 |
" |
|
141 |
JavaSlotIndexCache date_slot_tm_millis |
|
142 |
" |
|
143 |
||
144 |
"Created: 8.2.1997 / 13:29:43 / cg" |
|
145 |
! |
|
146 |
||
147 |
date_slot_tm_min |
|
148 |
Date_Slot_tm_min isNil ifTrue:[ |
|
149 |
Date_Slot_tm_min := (Java at:'java.util.Date') instVarOffsetOf:'tm_min' |
|
150 |
]. |
|
151 |
^ Date_Slot_tm_min |
|
152 |
||
153 |
" |
|
154 |
JavaSlotIndexCache date_slot_tm_min |
|
155 |
" |
|
156 |
||
157 |
"Created: 8.2.1997 / 13:29:32 / cg" |
|
158 |
! |
|
159 |
||
160 |
date_slot_tm_mon |
|
161 |
Date_Slot_tm_mon isNil ifTrue:[ |
|
162 |
Date_Slot_tm_mon := (Java at:'java.util.Date') instVarOffsetOf:'tm_mon' |
|
163 |
]. |
|
164 |
^ Date_Slot_tm_mon |
|
165 |
||
166 |
" |
|
167 |
JavaSlotIndexCache date_slot_tm_mon |
|
168 |
" |
|
169 |
||
170 |
"Created: 8.2.1997 / 13:29:05 / cg" |
|
171 |
! |
|
172 |
||
173 |
date_slot_tm_sec |
|
174 |
Date_Slot_tm_sec isNil ifTrue:[ |
|
175 |
Date_Slot_tm_sec := (Java at:'java.util.Date') instVarOffsetOf:'tm_sec' |
|
176 |
]. |
|
177 |
^ Date_Slot_tm_sec |
|
178 |
||
179 |
" |
|
180 |
JavaSlotIndexCache date_slot_tm_sec |
|
181 |
" |
|
182 |
||
183 |
"Created: 8.2.1997 / 13:29:37 / cg" |
|
184 |
! |
|
185 |
||
186 |
date_slot_tm_wday |
|
187 |
Date_Slot_tm_wday isNil ifTrue:[ |
|
188 |
Date_Slot_tm_wday := (Java at:'java.util.Date') instVarOffsetOf:'tm_wday' |
|
189 |
]. |
|
190 |
^ Date_Slot_tm_wday |
|
191 |
||
192 |
" |
|
193 |
JavaSlotIndexCache date_slot_tm_wday |
|
194 |
" |
|
195 |
||
196 |
"Created: 8.2.1997 / 13:29:14 / cg" |
|
197 |
"Modified: 8.2.1997 / 13:40:12 / cg" |
|
198 |
! |
|
199 |
||
200 |
date_slot_tm_yday |
|
201 |
Date_Slot_tm_yday isNil ifTrue:[ |
|
202 |
Date_Slot_tm_yday := (Java at:'java.util.Date') instVarOffsetOf:'tm_yday' |
|
203 |
]. |
|
204 |
^ Date_Slot_tm_yday |
|
205 |
||
206 |
" |
|
207 |
JavaSlotIndexCache date_slot_tm_yday |
|
208 |
" |
|
209 |
||
210 |
"Created: 8.2.1997 / 13:29:14 / cg" |
|
211 |
"Modified: 8.2.1997 / 13:38:30 / cg" |
|
212 |
! |
|
213 |
||
214 |
date_slot_tm_year |
|
215 |
Date_Slot_tm_year isNil ifTrue:[ |
|
216 |
Date_Slot_tm_year := (Java at:'java.util.Date') instVarOffsetOf:'tm_year' |
|
217 |
]. |
|
218 |
^ Date_Slot_tm_year |
|
219 |
||
220 |
" |
|
221 |
JavaSlotIndexCache date_slot_tm_year |
|
222 |
" |
|
223 |
||
224 |
"Created: 8.2.1997 / 13:28:52 / cg" |
|
225 |
! |
|
226 |
||
227 |
date_slot_value |
|
228 |
Date_Slot_value isNil ifTrue:[ |
|
229 |
Date_Slot_value := (Java at:'java.util.Date') instVarOffsetOf:'value' |
|
230 |
]. |
|
231 |
^ Date_Slot_value |
|
232 |
||
233 |
" |
|
234 |
JavaSlotIndexCache date_slot_value |
|
235 |
" |
|
236 |
||
237 |
"Created: 8.2.1997 / 13:30:30 / cg" |
|
238 |
"Modified: 8.2.1997 / 13:30:51 / cg" |
|
239 |
! |
|
240 |
||
241 |
date_slot_valueValid |
|
242 |
Date_Slot_valueValid isNil ifTrue:[ |
|
243 |
Date_Slot_valueValid := (Java at:'java.util.Date') instVarOffsetOf:'valueValid' |
|
244 |
]. |
|
245 |
^ Date_Slot_valueValid |
|
246 |
||
247 |
" |
|
248 |
JavaSlotIndexCache date_slot_valueValid |
|
249 |
" |
|
250 |
||
251 |
"Created: 8.2.1997 / 13:25:46 / cg" |
|
252 |
"Modified: 8.2.1997 / 13:27:47 / cg" |
|
253 |
! |
|
254 |
||
255 |
graphics_slot_color_from:graphics |
|
256 |
Graphics_Slot_color isNil ifTrue:[ |
|
257 |
Graphics_Slot_color := graphics class instVarOffsetOf:'color' |
|
258 |
]. |
|
259 |
^ Graphics_Slot_color |
|
260 |
||
261 |
"Created: 8.2.1997 / 13:53:56 / cg" |
|
262 |
! |
|
263 |
||
264 |
graphics_slot_pDrawable_from:graphics |
|
265 |
Graphics_Slot_pDrawable isNil ifTrue:[ |
|
266 |
Graphics_Slot_pDrawable := graphics class instVarOffsetOf:'pDrawable' |
|
267 |
]. |
|
268 |
^ Graphics_Slot_pDrawable |
|
269 |
||
270 |
"Created: 8.2.1997 / 13:49:42 / cg" |
|
271 |
! |
|
272 |
||
273 |
graphics_slot_touched_from:graphics |
|
274 |
Graphics_Slot_touched isNil ifTrue:[ |
|
275 |
Graphics_Slot_touched := graphics class instVarOffsetOf:'touched' |
|
276 |
]. |
|
277 |
^ Graphics_Slot_touched |
|
278 |
||
279 |
"Created: 8.2.1997 / 13:50:57 / cg" |
|
280 |
! |
|
281 |
||
282 |
string_slot_count |
|
283 |
String_Slot_count isNil ifTrue:[ |
|
284 |
String_Slot_count := (Java at:'java.lang.String') instVarOffsetOf:'count' |
|
285 |
]. |
|
286 |
^ String_Slot_count |
|
287 |
||
288 |
" |
|
289 |
JavaSlotIndexCache string_slot_count |
|
290 |
" |
|
291 |
||
292 |
"Created: 8.2.1997 / 13:19:06 / cg" |
|
293 |
! |
|
294 |
||
295 |
string_slot_offset |
|
296 |
String_Slot_offset isNil ifTrue:[ |
|
297 |
String_Slot_offset := (Java at:'java.lang.String') instVarOffsetOf:'offset' |
|
298 |
]. |
|
299 |
^ String_Slot_offset |
|
300 |
||
301 |
" |
|
302 |
JavaSlotIndexCache string_slot_offset |
|
303 |
" |
|
304 |
||
305 |
"Modified: 8.2.1997 / 13:18:53 / cg" |
|
306 |
! |
|
307 |
||
308 |
string_slot_value |
|
309 |
String_Slot_value isNil ifTrue:[ |
|
310 |
String_Slot_value := (Java at:'java.lang.String') instVarOffsetOf:'value' |
|
311 |
]. |
|
312 |
^ String_Slot_value |
|
313 |
||
314 |
" |
|
315 |
JavaSlotIndexCache string_slot_value |
|
316 |
" |
|
317 |
||
318 |
"Created: 8.2.1997 / 13:19:14 / cg" |
|
319 |
! ! |
|
320 |
||
321 |
!JavaSlotIndexCache class methodsFor:'documentation'! |
|
322 |
||
323 |
version |
|
2678
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
324 |
^ '$Header: /cvs/stx/stx/libjava/JavaSlotIndexCache.st,v 1.8 2013-09-06 00:41:26 vrany Exp $' |
2248 | 325 |
! |
326 |
||
327 |
version_CVS |
|
2678
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
328 |
^ '$Header: /cvs/stx/stx/libjava/JavaSlotIndexCache.st,v 1.8 2013-09-06 00:41:26 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
|
329 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2248
diff
changeset
|
330 |
|
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 |
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
|
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 |
^ '$Changeset: <not expanded> $' |
2151 | 334 |
! |
335 |
||
336 |
version_SVN |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
337 |
^ 'Id' |
2108 | 338 |
! ! |
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 |