author | Claus Gittinger <cg@exept.de> |
Sun, 23 Feb 2020 14:03:15 +0100 | |
branch | cvs_MAIN |
changeset 3997 | 5bb44f7e1d20 |
parent 3952 | 9b7cbf7ba0c2 |
permissions | -rw-r--r-- |
3952 | 1 |
"{ Encoding: utf8 }" |
2 |
||
749 | 3 |
" |
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
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:
2282
diff
changeset
|
5 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
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:
2282
diff
changeset
|
7 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
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:
2282
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:
2282
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:
2282
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:
2282
diff
changeset
|
21 |
as of 1.9.2010 |
749 | 22 |
" |
23 |
"{ Package: 'stx:libjava' }" |
|
24 |
||
3952 | 25 |
"{ NameSpace: Smalltalk }" |
26 |
||
749 | 27 |
JavaAnnotationContainer subclass:#JavaMethodAnnotationContainer |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
28 |
instanceVariableNames:'annotationDefault rawParamAnnotations visibleParameterAnnotations |
749 | 29 |
invisibleParameterAnnotations' |
30 |
classVariableNames:'' |
|
31 |
poolDictionaries:'' |
|
32 |
category:'Languages-Java-Annotations' |
|
33 |
! |
|
34 |
||
35 |
!JavaMethodAnnotationContainer class methodsFor:'documentation'! |
|
36 |
||
37 |
copyright |
|
38 |
" |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
39 |
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:
2282
diff
changeset
|
40 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
41 |
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:
2282
diff
changeset
|
42 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
43 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 44 |
SWING Research Group, Czech Technical University in Prague |
45 |
||
46 |
This software is furnished under a license and may be used |
|
47 |
only in accordance with the terms of that license and with the |
|
48 |
inclusion of the above copyright notice. This software may not |
|
49 |
be provided or otherwise made available to, or used by, any |
|
50 |
other person. No title to or ownership of the software is |
|
51 |
hereby transferred. |
|
52 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
53 |
[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:
2282
diff
changeset
|
54 |
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:
2282
diff
changeset
|
55 |
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:
2282
diff
changeset
|
56 |
as of 1.9.2010 |
749 | 57 |
|
58 |
" |
|
59 |
! ! |
|
60 |
||
61 |
!JavaMethodAnnotationContainer methodsFor:'accessing'! |
|
62 |
||
63 |
default |
|
64 |
^ annotationDefault |
|
65 |
||
66 |
"Created: / 03-03-2011 / 23:02:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
67 |
! |
|
68 |
||
69 |
default:something |
|
70 |
annotationDefault := something. |
|
71 |
! |
|
72 |
||
73 |
ensureInvisibleParameterAnnotationsAt: paramIndex |
|
3952 | 74 |
|ret| |
75 |
||
76 |
((ret := invisibleParameterAnnotations at: paramIndex) size == 0) ifTrue:[ |
|
77 |
invisibleParameterAnnotations at: paramIndex put:(ret := JavaAnnotationDictionary new) |
|
78 |
]. |
|
79 |
^ ret. |
|
749 | 80 |
|
81 |
"Created: / 16-03-2011 / 17:21:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
82 |
! |
|
83 |
||
3952 | 84 |
ensureVisibleParameterAnnotationsAt: paramIndex |
85 |
|ret| |
|
86 |
||
87 |
((ret := visibleParameterAnnotations at: paramIndex) size == 0) ifTrue:[ |
|
88 |
visibleParameterAnnotations at: paramIndex put:(ret := JavaAnnotationDictionary new) |
|
89 |
]. |
|
90 |
^ ret. |
|
749 | 91 |
|
92 |
"Created: / 16-03-2011 / 17:21:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
93 |
! |
|
94 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
95 |
rawParamAnnotations |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
96 |
^ rawParamAnnotations |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
97 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
98 |
"Created: / 01-12-2012 / 22:54:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
749 | 99 |
! |
100 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
101 |
rawParamAnnotations: something |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
102 |
rawParamAnnotations := something. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
103 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
104 |
"Created: / 01-12-2012 / 22:54:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
105 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
106 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
107 |
visibleParameterAnnotations |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
108 |
^ visibleParameterAnnotations |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
109 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
110 |
"Created: / 01-12-2012 / 22:39:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
749 | 111 |
! ! |
112 |
||
113 |
!JavaMethodAnnotationContainer methodsFor:'initialization'! |
|
114 |
||
115 |
initialize |
|
116 |
super initialize. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
117 |
visibleParameterAnnotations := JavaAnnotationDictionary empty. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
118 |
invisibleParameterAnnotations := JavaAnnotationDictionary empty. |
749 | 119 |
annotationDefault := JavaAnnotationDefault empty. |
120 |
||
121 |
"Modified: / 28-02-2011 / 16:34:54 / Marcel Hlopko <hlopik@gmail.com>" |
|
122 |
"Created: / 18-03-2011 / 23:50:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
123 |
"Modified: / 01-12-2012 / 22:27:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
749 | 124 |
! |
125 |
||
126 |
initializeFor: javaMethod |
|
127 |
super initializeFor: javaMethod. |
|
128 |
parent := javaMethod. |
|
129 |
||
130 |
visibleParameterAnnotations := Array new: javaMethod javaNumArgs. |
|
131 |
invisibleParameterAnnotations := Array new: javaMethod javaNumArgs. |
|
132 |
1 to: javaMethod javaNumArgs do: [:idx | visibleParameterAnnotations at: idx put: JavaAnnotationDictionary empty.invisibleParameterAnnotations at: idx put: JavaAnnotationDictionary empty. ]. |
|
133 |
annotationDefault := JavaAnnotationDefault empty. |
|
134 |
||
135 |
"Modified: / 28-02-2011 / 16:34:54 / Marcel Hlopko <hlopik@gmail.com>" |
|
136 |
"Modified: / 03-03-2011 / 22:48:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
137 |
"Modified: / 16-03-2011 / 17:28:51 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
138 |
! ! |
|
139 |
||
140 |
!JavaMethodAnnotationContainer class methodsFor:'documentation'! |
|
141 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
142 |
version_CVS |
3952 | 143 |
^ '$Header$' |
2282
78bfe0a96604
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
144 |
! |
78bfe0a96604
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
145 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
146 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
147 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
148 |
^ '$Changeset: <not expanded> $' |
2194 | 149 |
! |
150 |
||
749 | 151 |
version_SVN |
3952 | 152 |
^ '$Id$' |
2152 | 153 |
! ! |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2282
diff
changeset
|
154 |