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