752
|
1 |
"{ Package: 'stx:libjava' }"
|
|
2 |
|
|
3 |
Object subclass:#JavaAnnotationContainer
|
|
4 |
instanceVariableNames:'runtimeVisible runtimeInvisible parent'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Languages-Java-Annotations'
|
|
8 |
!
|
|
9 |
|
|
10 |
JavaAnnotationContainer class instanceVariableNames:'empty'
|
|
11 |
|
|
12 |
"
|
|
13 |
No other class instance variables are inherited by this class.
|
|
14 |
"
|
|
15 |
!
|
|
16 |
|
|
17 |
|
|
18 |
!JavaAnnotationContainer class methodsFor:'instance creation'!
|
|
19 |
|
|
20 |
for:parent
|
|
21 |
^self new initializeFor:parent.
|
|
22 |
|
|
23 |
"Created: / 28-02-2011 / 16:33:00 / Marcel Hlopko <hlopik@gmail.com>"
|
|
24 |
"Modified: / 03-03-2011 / 22:49:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
25 |
!
|
|
26 |
|
|
27 |
new
|
|
28 |
"return an initialized instance"
|
|
29 |
|
|
30 |
^ self basicNew initialize.
|
|
31 |
! !
|
|
32 |
|
|
33 |
!JavaAnnotationContainer class methodsFor:'accessing'!
|
|
34 |
|
|
35 |
empty
|
|
36 |
empty ifNil: [ empty := self new ].
|
|
37 |
^ empty.
|
|
38 |
|
|
39 |
"Created: / 03-03-2011 / 22:45:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
40 |
"Modified: / 16-03-2011 / 17:43:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
41 |
"Modified: / 16-03-2011 / 16:49:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
42 |
! !
|
|
43 |
|
|
44 |
!JavaAnnotationContainer methodsFor:'accessing'!
|
|
45 |
|
|
46 |
ensureRuntimeInvisible
|
|
47 |
runtimeInvisible size = 0
|
|
48 |
ifTrue: [ runtimeInvisible := JavaAnnotationDictionary new. ].
|
|
49 |
^ runtimeInvisible.
|
|
50 |
|
|
51 |
"Created: / 16-03-2011 / 16:56:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
52 |
!
|
|
53 |
|
|
54 |
ensureRuntimeVisible
|
|
55 |
runtimeVisible size = 0
|
|
56 |
ifTrue: [ runtimeVisible := JavaAnnotationDictionary new. ].
|
|
57 |
^ runtimeVisible.
|
|
58 |
|
|
59 |
"Created: / 16-03-2011 / 16:56:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
60 |
!
|
|
61 |
|
|
62 |
runtimeInvisible
|
|
63 |
^ runtimeInvisible
|
|
64 |
!
|
|
65 |
|
|
66 |
runtimeInvisible:something
|
|
67 |
runtimeInvisible := something.
|
|
68 |
!
|
|
69 |
|
|
70 |
runtimeVisible
|
|
71 |
^ runtimeVisible
|
|
72 |
!
|
|
73 |
|
|
74 |
runtimeVisible:something
|
|
75 |
runtimeVisible := something.
|
|
76 |
! !
|
|
77 |
|
|
78 |
!JavaAnnotationContainer methodsFor:'initialization'!
|
|
79 |
|
|
80 |
initialize
|
|
81 |
|
|
82 |
"Do not remove this method, is reqired for proper
|
|
83 |
initialization of 'empty' containers!!!!!!"
|
|
84 |
|
|
85 |
runtimeVisible := JavaAnnotationDictionary empty.
|
|
86 |
runtimeInvisible := JavaAnnotationDictionary empty.
|
|
87 |
|
|
88 |
"Modified: / 16-03-2011 / 17:11:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
89 |
"Created: / 16-03-2011 / 16:50:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
90 |
!
|
|
91 |
|
|
92 |
initializeFor: aParent
|
|
93 |
|
|
94 |
self initialize.
|
|
95 |
parent := aParent.
|
|
96 |
|
|
97 |
"Modified: / 16-03-2011 / 17:11:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
98 |
"Modified: / 16-03-2011 / 16:50:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
99 |
! !
|
|
100 |
|
|
101 |
!JavaAnnotationContainer class methodsFor:'documentation'!
|
|
102 |
|
|
103 |
version_SVN
|
|
104 |
^ '$Id$'
|
|
105 |
! !
|