author | Claus Gittinger <cg@exept.de> |
Thu, 24 Nov 2011 12:55:19 +0100 | |
changeset 2315 | 857134b3baa1 |
parent 2195 | f835c84b8d43 |
child 2353 | fa7400d022a0 |
permissions | -rw-r--r-- |
749 | 1 |
" |
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: |
|
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. |
|
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: |
|
26 |
||
27 |
The above copyright notice and this permission notice shall be |
|
28 |
included in all copies or substantial portions of the Software. |
|
29 |
||
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. |
|
38 |
||
39 |
[1] Code written at SWING Research Group contain a signature |
|
40 |
of one of the above copright owners. |
|
41 |
" |
|
42 |
"{ Package: 'stx:libjava' }" |
|
43 |
||
44 |
Object subclass:#JavaAnnotationContainer |
|
45 |
instanceVariableNames:'runtimeVisible runtimeInvisible parent' |
|
46 |
classVariableNames:'' |
|
47 |
poolDictionaries:'' |
|
48 |
category:'Languages-Java-Annotations' |
|
49 |
! |
|
50 |
||
51 |
JavaAnnotationContainer class instanceVariableNames:'empty' |
|
52 |
||
53 |
" |
|
54 |
No other class instance variables are inherited by this class. |
|
55 |
" |
|
56 |
! |
|
57 |
||
58 |
!JavaAnnotationContainer class methodsFor:'documentation'! |
|
59 |
||
60 |
copyright |
|
61 |
" |
|
62 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
63 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
|
64 |
SWING Research Group, Czech Technical University in Prague |
|
65 |
||
66 |
Parts of the code written by Claus Gittinger are under following |
|
67 |
license: |
|
68 |
||
69 |
This software is furnished under a license and may be used |
|
70 |
only in accordance with the terms of that license and with the |
|
71 |
inclusion of the above copyright notice. This software may not |
|
72 |
be provided or otherwise made available to, or used by, any |
|
73 |
other person. No title to or ownership of the software is |
|
74 |
hereby transferred. |
|
75 |
||
76 |
Parts of the code written at SWING Reasearch Group [1] are MIT licensed: |
|
77 |
||
78 |
Permission is hereby granted, free of charge, to any person |
|
79 |
obtaining a copy of this software and associated documentation |
|
80 |
files (the 'Software'), to deal in the Software without |
|
81 |
restriction, including without limitation the rights to use, |
|
82 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
83 |
copies of the Software, and to permit persons to whom the |
|
84 |
Software is furnished to do so, subject to the following |
|
85 |
conditions: |
|
86 |
||
87 |
The above copyright notice and this permission notice shall be |
|
88 |
included in all copies or substantial portions of the Software. |
|
89 |
||
90 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
91 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
92 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
93 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
94 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
95 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
96 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
97 |
OTHER DEALINGS IN THE SOFTWARE. |
|
98 |
||
99 |
[1] Code written at SWING Research Group contain a signature |
|
100 |
of one of the above copright owners. |
|
101 |
||
102 |
" |
|
103 |
! ! |
|
104 |
||
105 |
!JavaAnnotationContainer class methodsFor:'instance creation'! |
|
106 |
||
107 |
for:parent |
|
108 |
^self new initializeFor:parent. |
|
109 |
||
110 |
"Created: / 28-02-2011 / 16:33:00 / Marcel Hlopko <hlopik@gmail.com>" |
|
111 |
"Modified: / 03-03-2011 / 22:49:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
112 |
! |
|
113 |
||
114 |
new |
|
115 |
"return an initialized instance" |
|
116 |
||
117 |
^ self basicNew initialize. |
|
118 |
! ! |
|
119 |
||
120 |
!JavaAnnotationContainer class methodsFor:'accessing'! |
|
121 |
||
122 |
empty |
|
123 |
empty ifNil: [ empty := self new ]. |
|
124 |
^ empty. |
|
125 |
||
126 |
"Created: / 03-03-2011 / 22:45:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
127 |
"Modified: / 16-03-2011 / 17:43:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
128 |
"Modified: / 16-03-2011 / 16:49:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
129 |
! ! |
|
130 |
||
131 |
!JavaAnnotationContainer methodsFor:'accessing'! |
|
132 |
||
133 |
ensureRuntimeInvisible |
|
134 |
runtimeInvisible size = 0 |
|
135 |
ifTrue: [ runtimeInvisible := JavaAnnotationDictionary new. ]. |
|
136 |
^ runtimeInvisible. |
|
137 |
||
138 |
"Created: / 16-03-2011 / 16:56:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
139 |
! |
|
140 |
||
141 |
ensureRuntimeVisible |
|
142 |
runtimeVisible size = 0 |
|
143 |
ifTrue: [ runtimeVisible := JavaAnnotationDictionary new. ]. |
|
144 |
^ runtimeVisible. |
|
145 |
||
146 |
"Created: / 16-03-2011 / 16:56:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
147 |
! |
|
148 |
||
149 |
runtimeInvisible |
|
150 |
^ runtimeInvisible |
|
151 |
! |
|
152 |
||
153 |
runtimeInvisible:something |
|
154 |
runtimeInvisible := something. |
|
155 |
! |
|
156 |
||
157 |
runtimeVisible |
|
158 |
^ runtimeVisible |
|
159 |
! |
|
160 |
||
161 |
runtimeVisible:something |
|
162 |
runtimeVisible := something. |
|
163 |
! ! |
|
164 |
||
165 |
!JavaAnnotationContainer methodsFor:'initialization'! |
|
166 |
||
167 |
initialize |
|
168 |
||
169 |
"Do not remove this method, is reqired for proper |
|
170 |
initialization of 'empty' containers!!!!!!" |
|
171 |
||
172 |
runtimeVisible := JavaAnnotationDictionary empty. |
|
173 |
runtimeInvisible := JavaAnnotationDictionary empty. |
|
174 |
||
175 |
"Modified: / 16-03-2011 / 17:11:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
176 |
"Created: / 16-03-2011 / 16:50:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
177 |
! |
|
178 |
||
179 |
initializeFor: aParent |
|
180 |
||
181 |
self initialize. |
|
182 |
parent := aParent. |
|
183 |
||
184 |
"Modified: / 16-03-2011 / 17:11:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
185 |
"Modified: / 16-03-2011 / 16:50:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
186 |
! ! |
|
187 |
||
188 |
!JavaAnnotationContainer class methodsFor:'documentation'! |
|
189 |
||
2315
857134b3baa1
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2195
diff
changeset
|
190 |
version |
857134b3baa1
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2195
diff
changeset
|
191 |
^ '$Header: /cvs/stx/stx/libjava/JavaAnnotationContainer.st,v 1.3 2011-11-24 11:55:19 cg Exp $' |
857134b3baa1
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2195
diff
changeset
|
192 |
! |
857134b3baa1
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2195
diff
changeset
|
193 |
|
2195 | 194 |
version_CVS |
2315
857134b3baa1
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2195
diff
changeset
|
195 |
^ '$Header: /cvs/stx/stx/libjava/JavaAnnotationContainer.st,v 1.3 2011-11-24 11:55:19 cg Exp $' |
2195 | 196 |
! |
197 |
||
749 | 198 |
version_SVN |
2195 | 199 |
^ '§Id: JavaAnnotationContainer.st,v 1.1 2011/08/18 19:06:53 vrany Exp §' |
2152 | 200 |
! ! |