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