877
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger
|
1152
|
3 |
|
1155
|
4 |
New code and modifications done at SWING Research Group [1]:
|
1152
|
5 |
|
877
|
6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
|
|
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 |
|
1155
|
16 |
[1] Code written at SWING Research Group contains a signature
|
|
17 |
of one of the above copright owners. For exact set of such code,
|
|
18 |
see the differences between this version and version stx:libjava
|
1152
|
19 |
as of 1.9.2010
|
877
|
20 |
"
|
752
|
21 |
"{ Package: 'stx:libjava' }"
|
|
22 |
|
|
23 |
JavaAnnotationContainer subclass:#JavaMethodAnnotationContainer
|
1850
|
24 |
instanceVariableNames:'annotationDefault rawParamAnnotations visibleParameterAnnotations
|
1849
|
25 |
invisibleParameterAnnotations'
|
752
|
26 |
classVariableNames:''
|
|
27 |
poolDictionaries:''
|
|
28 |
category:'Languages-Java-Annotations'
|
|
29 |
!
|
|
30 |
|
877
|
31 |
!JavaMethodAnnotationContainer class methodsFor:'documentation'!
|
|
32 |
|
|
33 |
copyright
|
|
34 |
"
|
|
35 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger
|
1152
|
36 |
|
1155
|
37 |
New code and modifications done at SWING Research Group [1]:
|
1152
|
38 |
|
877
|
39 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
|
|
40 |
SWING Research Group, Czech Technical University in Prague
|
|
41 |
|
|
42 |
This software is furnished under a license and may be used
|
|
43 |
only in accordance with the terms of that license and with the
|
|
44 |
inclusion of the above copyright notice. This software may not
|
|
45 |
be provided or otherwise made available to, or used by, any
|
|
46 |
other person. No title to or ownership of the software is
|
|
47 |
hereby transferred.
|
|
48 |
|
1155
|
49 |
[1] Code written at SWING Research Group contains a signature
|
|
50 |
of one of the above copright owners. For exact set of such code,
|
|
51 |
see the differences between this version and version stx:libjava
|
1152
|
52 |
as of 1.9.2010
|
877
|
53 |
|
|
54 |
"
|
|
55 |
! !
|
752
|
56 |
|
|
57 |
!JavaMethodAnnotationContainer methodsFor:'accessing'!
|
|
58 |
|
|
59 |
default
|
|
60 |
^ annotationDefault
|
|
61 |
|
|
62 |
"Created: / 03-03-2011 / 23:02:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
63 |
!
|
|
64 |
|
|
65 |
default:something
|
|
66 |
annotationDefault := something.
|
|
67 |
!
|
|
68 |
|
|
69 |
ensureInvisibleParameterAnnotationsAt: paramIndex
|
|
70 |
((invisibleParameterAnnotations at: paramIndex)
|
|
71 |
size = 0)
|
|
72 |
ifTrue:
|
|
73 |
[ invisibleParameterAnnotations at: paramIndex
|
|
74 |
put: JavaAnnotationDictionary new ].
|
|
75 |
^ invisibleParameterAnnotations at: paramIndex.
|
|
76 |
|
|
77 |
"Created: / 16-03-2011 / 17:21:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
78 |
!
|
|
79 |
|
|
80 |
ensureVisibleParameterAnnotationsAt: paramIndex
|
|
81 |
((visibleParameterAnnotations at: paramIndex)
|
|
82 |
size = 0)
|
|
83 |
ifTrue:
|
|
84 |
[ visibleParameterAnnotations at: paramIndex
|
|
85 |
put: JavaAnnotationDictionary new ].
|
|
86 |
^ visibleParameterAnnotations at: paramIndex.
|
|
87 |
|
|
88 |
"Created: / 16-03-2011 / 17:21:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
89 |
!
|
|
90 |
|
1850
|
91 |
rawParamAnnotations
|
|
92 |
^ rawParamAnnotations
|
|
93 |
|
|
94 |
"Created: / 01-12-2012 / 22:54:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
752
|
95 |
!
|
|
96 |
|
1850
|
97 |
rawParamAnnotations: something
|
|
98 |
rawParamAnnotations := something.
|
|
99 |
|
|
100 |
"Created: / 01-12-2012 / 22:54:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
1848
|
101 |
!
|
|
102 |
|
1849
|
103 |
visibleParameterAnnotations
|
|
104 |
^ visibleParameterAnnotations
|
1848
|
105 |
|
1849
|
106 |
"Created: / 01-12-2012 / 22:39:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
752
|
107 |
! !
|
|
108 |
|
|
109 |
!JavaMethodAnnotationContainer methodsFor:'initialization'!
|
|
110 |
|
|
111 |
initialize
|
|
112 |
super initialize.
|
1849
|
113 |
visibleParameterAnnotations := JavaAnnotationDictionary empty.
|
|
114 |
invisibleParameterAnnotations := JavaAnnotationDictionary empty.
|
752
|
115 |
annotationDefault := JavaAnnotationDefault empty.
|
|
116 |
|
|
117 |
"Modified: / 28-02-2011 / 16:34:54 / Marcel Hlopko <hlopik@gmail.com>"
|
|
118 |
"Created: / 18-03-2011 / 23:50:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
1849
|
119 |
"Modified: / 01-12-2012 / 22:27:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
752
|
120 |
!
|
|
121 |
|
|
122 |
initializeFor: javaMethod
|
|
123 |
super initializeFor: javaMethod.
|
|
124 |
parent := javaMethod.
|
|
125 |
|
|
126 |
visibleParameterAnnotations := Array new: javaMethod javaNumArgs.
|
|
127 |
invisibleParameterAnnotations := Array new: javaMethod javaNumArgs.
|
|
128 |
1 to: javaMethod javaNumArgs do: [:idx | visibleParameterAnnotations at: idx put: JavaAnnotationDictionary empty.invisibleParameterAnnotations at: idx put: JavaAnnotationDictionary empty. ].
|
|
129 |
annotationDefault := JavaAnnotationDefault empty.
|
|
130 |
|
|
131 |
"Modified: / 28-02-2011 / 16:34:54 / Marcel Hlopko <hlopik@gmail.com>"
|
|
132 |
"Modified: / 03-03-2011 / 22:48:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
133 |
"Modified: / 16-03-2011 / 17:28:51 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
134 |
! !
|
|
135 |
|
|
136 |
!JavaMethodAnnotationContainer class methodsFor:'documentation'!
|
|
137 |
|
1864
|
138 |
version_HG
|
|
139 |
|
|
140 |
^ '$Changeset: <not expanded> $'
|
|
141 |
!
|
|
142 |
|
752
|
143 |
version_SVN
|
1864
|
144 |
^ '§Id§'
|
752
|
145 |
! !
|