author | Claus Gittinger <cg@exept.de> |
Fri, 01 Nov 2019 13:44:29 +0100 | |
branch | cvs_MAIN |
changeset 3973 | ee0b2d717637 |
parent 3957 | 592634cdb0e2 |
permissions | -rw-r--r-- |
3957 | 1 |
"{ Encoding: utf8 }" |
2 |
||
749 | 3 |
" |
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3196
diff
changeset
|
4 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2315
diff
changeset
|
5 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2315
diff
changeset
|
6 |
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:
2315
diff
changeset
|
7 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3196
diff
changeset
|
8 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 9 |
SWING Research Group, Czech Technical University in Prague |
10 |
||
11 |
This software is furnished under a license and may be used |
|
12 |
only in accordance with the terms of that license and with the |
|
13 |
inclusion of the above copyright notice. This software may not |
|
14 |
be provided or otherwise made available to, or used by, any |
|
15 |
other person. No title to or ownership of the software is |
|
16 |
hereby transferred. |
|
17 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2315
diff
changeset
|
18 |
[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:
2315
diff
changeset
|
19 |
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:
2315
diff
changeset
|
20 |
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:
2315
diff
changeset
|
21 |
as of 1.9.2010 |
749 | 22 |
" |
23 |
"{ Package: 'stx:libjava' }" |
|
24 |
||
3718 | 25 |
"{ NameSpace: Smalltalk }" |
26 |
||
749 | 27 |
Object subclass:#JavaAnnotationContainer |
28 |
instanceVariableNames:'runtimeVisible runtimeInvisible parent' |
|
29 |
classVariableNames:'' |
|
30 |
poolDictionaries:'' |
|
31 |
category:'Languages-Java-Annotations' |
|
32 |
! |
|
33 |
||
34 |
JavaAnnotationContainer class instanceVariableNames:'empty' |
|
35 |
||
36 |
" |
|
37 |
No other class instance variables are inherited by this class. |
|
38 |
" |
|
39 |
! |
|
40 |
||
41 |
!JavaAnnotationContainer class methodsFor:'documentation'! |
|
42 |
||
43 |
copyright |
|
44 |
" |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3196
diff
changeset
|
45 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2315
diff
changeset
|
46 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2315
diff
changeset
|
47 |
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:
2315
diff
changeset
|
48 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3196
diff
changeset
|
49 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 50 |
SWING Research Group, Czech Technical University in Prague |
51 |
||
52 |
This software is furnished under a license and may be used |
|
53 |
only in accordance with the terms of that license and with the |
|
54 |
inclusion of the above copyright notice. This software may not |
|
55 |
be provided or otherwise made available to, or used by, any |
|
56 |
other person. No title to or ownership of the software is |
|
57 |
hereby transferred. |
|
58 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2315
diff
changeset
|
59 |
[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:
2315
diff
changeset
|
60 |
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:
2315
diff
changeset
|
61 |
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:
2315
diff
changeset
|
62 |
as of 1.9.2010 |
749 | 63 |
|
64 |
" |
|
65 |
! ! |
|
66 |
||
67 |
!JavaAnnotationContainer class methodsFor:'instance creation'! |
|
68 |
||
69 |
for:parent |
|
70 |
^self new initializeFor:parent. |
|
71 |
||
72 |
"Created: / 28-02-2011 / 16:33:00 / Marcel Hlopko <hlopik@gmail.com>" |
|
73 |
"Modified: / 03-03-2011 / 22:49:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
74 |
! |
|
75 |
||
76 |
new |
|
77 |
"return an initialized instance" |
|
78 |
||
79 |
^ self basicNew initialize. |
|
80 |
! ! |
|
81 |
||
82 |
!JavaAnnotationContainer class methodsFor:'accessing'! |
|
83 |
||
84 |
empty |
|
3196
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
85 |
empty isNil ifTrue:[ |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
86 |
empty := self new |
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
87 |
]. |
749 | 88 |
^ empty. |
89 |
||
90 |
"Created: / 03-03-2011 / 22:45:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
91 |
"Modified: / 16-03-2011 / 17:43:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
3196
d617b4590431
(Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
92 |
"Modified: / 04-08-2014 / 15:53:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 93 |
! ! |
94 |
||
95 |
!JavaAnnotationContainer methodsFor:'accessing'! |
|
96 |
||
97 |
ensureRuntimeInvisible |
|
3957 | 98 |
runtimeInvisible size == 0 |
749 | 99 |
ifTrue: [ runtimeInvisible := JavaAnnotationDictionary new. ]. |
100 |
^ runtimeInvisible. |
|
101 |
||
102 |
"Created: / 16-03-2011 / 16:56:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
103 |
! |
|
104 |
||
105 |
ensureRuntimeVisible |
|
3957 | 106 |
runtimeVisible size == 0 |
749 | 107 |
ifTrue: [ runtimeVisible := JavaAnnotationDictionary new. ]. |
108 |
^ runtimeVisible. |
|
109 |
||
110 |
"Created: / 16-03-2011 / 16:56:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
111 |
! |
|
112 |
||
113 |
runtimeInvisible |
|
114 |
^ runtimeInvisible |
|
115 |
! |
|
116 |
||
117 |
runtimeInvisible:something |
|
118 |
runtimeInvisible := something. |
|
119 |
! |
|
120 |
||
121 |
runtimeVisible |
|
122 |
^ runtimeVisible |
|
123 |
! |
|
124 |
||
125 |
runtimeVisible:something |
|
126 |
runtimeVisible := something. |
|
127 |
! ! |
|
128 |
||
129 |
!JavaAnnotationContainer methodsFor:'initialization'! |
|
130 |
||
131 |
initialize |
|
132 |
||
3718 | 133 |
"Do not remove this method. It is required for proper |
134 |
initialization of 'empty' containers!!" |
|
749 | 135 |
|
136 |
runtimeVisible := JavaAnnotationDictionary empty. |
|
137 |
runtimeInvisible := JavaAnnotationDictionary empty. |
|
138 |
||
139 |
"Modified: / 16-03-2011 / 17:11:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
140 |
"Created: / 16-03-2011 / 16:50:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3718 | 141 |
"Modified (comment): / 30-05-2017 / 18:59:41 / mawalch" |
749 | 142 |
! |
143 |
||
144 |
initializeFor: aParent |
|
145 |
||
146 |
self initialize. |
|
147 |
parent := aParent. |
|
148 |
||
149 |
"Modified: / 16-03-2011 / 17:11:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
150 |
"Modified: / 16-03-2011 / 16:50:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
151 |
! ! |
|
152 |
||
153 |
!JavaAnnotationContainer class methodsFor:'documentation'! |
|
154 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2315
diff
changeset
|
155 |
version_CVS |
3718 | 156 |
^ '$Header$' |
2315
857134b3baa1
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2195
diff
changeset
|
157 |
! |
857134b3baa1
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2195
diff
changeset
|
158 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2315
diff
changeset
|
159 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2315
diff
changeset
|
160 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2315
diff
changeset
|
161 |
^ '$Changeset: <not expanded> $' |
2195 | 162 |
! |
163 |
||
749 | 164 |
version_SVN |
3718 | 165 |
^ '$Id$' |
2152 | 166 |
! ! |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2315
diff
changeset
|
167 |