author | mawalch |
Mon, 22 May 2017 14:18:31 +0200 | |
branch | cvs_MAIN |
changeset 3713 | 68c63bd08343 |
parent 3412 | df11bb428463 |
permissions | -rw-r--r-- |
749 | 1 |
" |
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3186
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:
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 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3186
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:
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 |
" |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3186
diff
changeset
|
34 |
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:
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 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3186
diff
changeset
|
38 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 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 |
||
56 |
!JavaAnnotation class methodsFor:'instance creation'! |
|
57 |
||
58 |
for:parent |
|
59 |
"Create & return a new instance for given parent." |
|
60 |
||
61 |
^ self basicNew initializeFor:parent |
|
62 |
||
63 |
" |
|
64 |
JavaAnnotation for: nil. |
|
65 |
" |
|
66 |
||
67 |
"Modified: / 17-12-2010 / 16:32:46 / Marcel Hlopko <hlopik@gmail.com>" |
|
68 |
! ! |
|
69 |
||
70 |
!JavaAnnotation methodsFor:'accessing'! |
|
71 |
||
72 |
constantPool |
|
73 |
^parent constantPool. |
|
74 |
||
75 |
"Created: / 17-12-2010 / 14:21:59 / Marcel Hlopko <hlopik@gmail.com>" |
|
76 |
! |
|
77 |
||
78 |
name |
|
79 |
name isNil ifTrue: [self constantPool at: nameIndex] ifFalse: [^name]. |
|
80 |
||
81 |
"Modified: / 17-12-2010 / 18:01:14 / Marcel Hlopko <hlopik@gmail.com>" |
|
82 |
! |
|
83 |
||
84 |
name: something |
|
85 |
name := something. |
|
86 |
||
87 |
"Created: / 17-12-2010 / 18:02:30 / Marcel Hlopko <hlopik@gmail.com>" |
|
88 |
! |
|
89 |
||
90 |
nameIndex |
|
91 |
^ nameIndex |
|
92 |
! |
|
93 |
||
94 |
nameIndex: something |
|
95 |
nameIndex := something. |
|
96 |
name := self constantPool at: nameIndex. |
|
97 |
||
98 |
"Created: / 17-12-2010 / 18:02:14 / Marcel Hlopko <hlopik@gmail.com>" |
|
99 |
"Modified: / 17-12-2010 / 19:47:41 / Marcel Hlopko <hlopik@gmail.com>" |
|
100 |
! |
|
101 |
||
102 |
parent |
|
103 |
^ parent |
|
104 |
! |
|
105 |
||
106 |
parent:something |
|
107 |
parent := something. |
|
108 |
! |
|
109 |
||
3186
945bee015640
Made JavaClass>>package returning Smalltalk/X package name from annotation, if annotated.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
110 |
value |
945bee015640
Made JavaClass>>package returning Smalltalk/X package name from annotation, if annotated.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
111 |
^ (values at: #value) value |
945bee015640
Made JavaClass>>package returning Smalltalk/X package name from annotation, if annotated.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
112 |
|
945bee015640
Made JavaClass>>package returning Smalltalk/X package name from annotation, if annotated.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
113 |
"Created: / 30-07-2014 / 19:55:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
945bee015640
Made JavaClass>>package returning Smalltalk/X package name from annotation, if annotated.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
114 |
! |
945bee015640
Made JavaClass>>package returning Smalltalk/X package name from annotation, if annotated.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
115 |
|
749 | 116 |
valueAt: anIndex |
117 |
||
118 |
^ values at: anIndex value. |
|
119 |
||
120 |
"Created: / 17-12-2010 / 14:26:38 / Marcel Hlopko <hlopik@gmail.com>" |
|
121 |
! |
|
122 |
||
123 |
values |
|
124 |
^ values |
|
125 |
! |
|
126 |
||
127 |
values:something |
|
128 |
values := something. |
|
129 |
! |
|
130 |
||
131 |
valuesCount |
|
132 |
^ valuesCount |
|
133 |
! |
|
134 |
||
135 |
valuesCount:something |
|
136 |
valuesCount := something. |
|
137 |
! ! |
|
138 |
||
139 |
!JavaAnnotation methodsFor:'initialization'! |
|
140 |
||
141 |
initialize |
|
142 |
||
143 |
values := Dictionary new. |
|
144 |
||
145 |
"Created: / 17-12-2010 / 16:35:08 / Marcel Hlopko <hlopik@gmail.com>" |
|
146 |
! |
|
147 |
||
148 |
initializeFor:aParent |
|
149 |
"Invoked when a new instance is created for aParent." |
|
150 |
||
151 |
parent := aParent. |
|
152 |
self initialize. |
|
153 |
||
154 |
"Modified: / 17-12-2010 / 16:33:59 / Marcel Hlopko <hlopik@gmail.com>" |
|
155 |
! ! |
|
156 |
||
157 |
!JavaAnnotation class methodsFor:'documentation'! |
|
158 |
||
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
|
159 |
version_CVS |
3412
df11bb428463
Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3360
diff
changeset
|
160 |
^ '$Header: /cvs/stx/stx/libjava/JavaAnnotation.st,v 1.8 2015-03-20 12:07:59 vrany Exp $' |
2317
d062ed801490
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2217
diff
changeset
|
161 |
! |
d062ed801490
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2217
diff
changeset
|
162 |
|
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
|
163 |
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
|
164 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2317
diff
changeset
|
165 |
^ '$Changeset: <not expanded> $' |
2217 | 166 |
! |
167 |
||
749 | 168 |
version_SVN |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
169 |
^ 'Id' |
2152 | 170 |
! ! |
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
|
171 |