author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 07 May 2013 12:39:09 +0100 | |
branch | development |
changeset 2588 | 58b1e0fd20e7 |
parent 2429 | ebece4dcaab9 |
child 2711 | a00302fe5083 |
permissions | -rw-r--r-- |
749 | 1 |
" |
2 |
COPYRIGHT (c) 1996-2011 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:
2317
diff
changeset
|
3 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2317
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:
2317
diff
changeset
|
5 |
|
749 | 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 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2317
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:
2317
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:
2317
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:
2317
diff
changeset
|
19 |
as of 1.9.2010 |
749 | 20 |
" |
21 |
"{ Package: 'stx:libjava' }" |
|
22 |
||
23 |
Object subclass:#JavaAnnotation |
|
24 |
instanceVariableNames:'nameIndex name valuesCount values parent' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'Languages-Java-Reader-Support' |
|
28 |
! |
|
29 |
||
30 |
!JavaAnnotation class methodsFor:'documentation'! |
|
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
COPYRIGHT (c) 1996-2011 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:
2317
diff
changeset
|
35 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2317
diff
changeset
|
36 |
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:
2317
diff
changeset
|
37 |
|
749 | 38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
39 |
SWING Research Group, Czech Technical University in Prague |
|
40 |
||
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2317
diff
changeset
|
48 |
[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:
2317
diff
changeset
|
49 |
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:
2317
diff
changeset
|
50 |
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:
2317
diff
changeset
|
51 |
as of 1.9.2010 |
749 | 52 |
|
53 |
" |
|
54 |
! ! |
|
55 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
56 |
|
749 | 57 |
!JavaAnnotation class methodsFor:'instance creation'! |
58 |
||
59 |
for:parent |
|
60 |
"Create & return a new instance for given parent." |
|
61 |
||
62 |
^ self basicNew initializeFor:parent |
|
63 |
||
64 |
" |
|
65 |
JavaAnnotation for: nil. |
|
66 |
" |
|
67 |
||
68 |
"Modified: / 17-12-2010 / 16:32:46 / Marcel Hlopko <hlopik@gmail.com>" |
|
69 |
! ! |
|
70 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
71 |
|
749 | 72 |
!JavaAnnotation methodsFor:'accessing'! |
73 |
||
74 |
constantPool |
|
75 |
^parent constantPool. |
|
76 |
||
77 |
"Created: / 17-12-2010 / 14:21:59 / Marcel Hlopko <hlopik@gmail.com>" |
|
78 |
! |
|
79 |
||
80 |
name |
|
81 |
name isNil ifTrue: [self constantPool at: nameIndex] ifFalse: [^name]. |
|
82 |
||
83 |
"Modified: / 17-12-2010 / 18:01:14 / Marcel Hlopko <hlopik@gmail.com>" |
|
84 |
! |
|
85 |
||
86 |
name: something |
|
87 |
name := something. |
|
88 |
||
89 |
"Created: / 17-12-2010 / 18:02:30 / Marcel Hlopko <hlopik@gmail.com>" |
|
90 |
! |
|
91 |
||
92 |
nameIndex |
|
93 |
^ nameIndex |
|
94 |
! |
|
95 |
||
96 |
nameIndex: something |
|
97 |
nameIndex := something. |
|
98 |
name := self constantPool at: nameIndex. |
|
99 |
||
100 |
"Created: / 17-12-2010 / 18:02:14 / Marcel Hlopko <hlopik@gmail.com>" |
|
101 |
"Modified: / 17-12-2010 / 19:47:41 / Marcel Hlopko <hlopik@gmail.com>" |
|
102 |
! |
|
103 |
||
104 |
parent |
|
105 |
^ parent |
|
106 |
! |
|
107 |
||
108 |
parent:something |
|
109 |
parent := something. |
|
110 |
! |
|
111 |
||
112 |
valueAt: anIndex |
|
113 |
||
114 |
^ values at: anIndex value. |
|
115 |
||
116 |
"Created: / 17-12-2010 / 14:26:38 / Marcel Hlopko <hlopik@gmail.com>" |
|
117 |
! |
|
118 |
||
119 |
values |
|
120 |
^ values |
|
121 |
! |
|
122 |
||
123 |
values:something |
|
124 |
values := something. |
|
125 |
! |
|
126 |
||
127 |
valuesCount |
|
128 |
^ valuesCount |
|
129 |
! |
|
130 |
||
131 |
valuesCount:something |
|
132 |
valuesCount := something. |
|
133 |
! ! |
|
134 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
135 |
|
749 | 136 |
!JavaAnnotation methodsFor:'initialization'! |
137 |
||
138 |
initialize |
|
139 |
||
140 |
values := Dictionary new. |
|
141 |
||
142 |
"Created: / 17-12-2010 / 16:35:08 / Marcel Hlopko <hlopik@gmail.com>" |
|
143 |
! |
|
144 |
||
145 |
initializeFor:aParent |
|
146 |
"Invoked when a new instance is created for aParent." |
|
147 |
||
148 |
parent := aParent. |
|
149 |
self initialize. |
|
150 |
||
151 |
"Modified: / 17-12-2010 / 16:33:59 / Marcel Hlopko <hlopik@gmail.com>" |
|
152 |
! ! |
|
153 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
154 |
|
749 | 155 |
!JavaAnnotation class methodsFor:'documentation'! |
156 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2317
diff
changeset
|
157 |
version_CVS |
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
158 |
^ '$Header: /cvs/stx/stx/libjava/JavaAnnotation.st,v 1.5 2013-02-25 11:15:31 vrany Exp $' |
2317
d062ed801490
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2217
diff
changeset
|
159 |
! |
d062ed801490
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2217
diff
changeset
|
160 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2317
diff
changeset
|
161 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2317
diff
changeset
|
162 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2317
diff
changeset
|
163 |
^ '$Changeset: <not expanded> $' |
2217 | 164 |
! |
165 |
||
749 | 166 |
version_SVN |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2317
diff
changeset
|
167 |
^ '§Id§' |
2152 | 168 |
! ! |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2317
diff
changeset
|
169 |