author | vranyj1 |
Wed, 23 Nov 2011 15:26:06 +0000 | |
branch | jk_new_structure |
changeset 1152 | 040cba55a7d2 |
parent 1033 | a31de6a4cfa4 |
child 1155 | d6f6d5fc0343 |
permissions | -rw-r--r-- |
877 | 1 |
" |
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1152 | 3 |
|
4 |
New code and modification done at SWING Research Group [1]: |
|
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 |
Parts of the code written by Claus Gittinger are under following |
|
10 |
license: |
|
11 |
||
12 |
This software is furnished under a license and may be used |
|
13 |
only in accordance with the terms of that license and with the |
|
14 |
inclusion of the above copyright notice. This software may not |
|
15 |
be provided or otherwise made available to, or used by, any |
|
16 |
other person. No title to or ownership of the software is |
|
17 |
hereby transferred. |
|
18 |
||
19 |
[1] Code written at SWING Research Group contain a signature |
|
1152 | 20 |
of one of the above copright owners. For exact set of such code |
21 |
see the differences between this version and version stx:lib |
|
22 |
as of 1.9.2010 |
|
877 | 23 |
" |
752 | 24 |
"{ Package: 'stx:libjava' }" |
25 |
||
26 |
JavaDescriptor subclass:#JavaFieldDescriptor |
|
27 |
instanceVariableNames:'javaClassName javaClass' |
|
28 |
classVariableNames:'' |
|
29 |
poolDictionaries:'' |
|
30 |
category:'Languages-Java-Support' |
|
31 |
! |
|
32 |
||
877 | 33 |
!JavaFieldDescriptor class methodsFor:'documentation'! |
34 |
||
35 |
copyright |
|
36 |
" |
|
37 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1152 | 38 |
|
39 |
New code and modification done at SWING Research Group [1]: |
|
40 |
||
877 | 41 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
42 |
SWING Research Group, Czech Technical University in Prague |
|
43 |
||
44 |
Parts of the code written by Claus Gittinger are under following |
|
45 |
license: |
|
46 |
||
47 |
This software is furnished under a license and may be used |
|
48 |
only in accordance with the terms of that license and with the |
|
49 |
inclusion of the above copyright notice. This software may not |
|
50 |
be provided or otherwise made available to, or used by, any |
|
51 |
other person. No title to or ownership of the software is |
|
52 |
hereby transferred. |
|
53 |
||
54 |
[1] Code written at SWING Research Group contain a signature |
|
1152 | 55 |
of one of the above copright owners. For exact set of such code |
56 |
see the differences between this version and version stx:lib |
|
57 |
as of 1.9.2010 |
|
877 | 58 |
|
59 |
" |
|
60 |
! ! |
|
752 | 61 |
|
62 |
!JavaFieldDescriptor class methodsFor:'instance creation'! |
|
63 |
||
64 |
javaClass: cls |
|
65 |
||
66 |
^self new javaClass: cls |
|
67 |
||
68 |
"Created: / 25-11-2010 / 18:08:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
69 |
! |
|
70 |
||
71 |
javaClassName: clsName |
|
72 |
||
73 |
^self new javaClassName: clsName |
|
74 |
||
75 |
"Created: / 25-11-2010 / 18:08:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
76 |
! ! |
|
77 |
||
78 |
!JavaFieldDescriptor methodsFor:'accessing'! |
|
79 |
||
80 |
javaClass |
|
1033 | 81 |
javaClass ifNil: [ javaClass := JavaVM classForName: self javaClassName ]. |
82 |
^ javaClass |
|
752 | 83 |
|
912
e651488f5741
Many fixes in reflection, expecially for generic types support
vranyj1
parents:
877
diff
changeset
|
84 |
"Modified: / 13-08-2011 / 01:24:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
752 | 85 |
! |
86 |
||
87 |
javaClassName |
|
912
e651488f5741
Many fixes in reflection, expecially for generic types support
vranyj1
parents:
877
diff
changeset
|
88 |
^ javaClassName upTo: $< |
e651488f5741
Many fixes in reflection, expecially for generic types support
vranyj1
parents:
877
diff
changeset
|
89 |
|
e651488f5741
Many fixes in reflection, expecially for generic types support
vranyj1
parents:
877
diff
changeset
|
90 |
"Modified: / 13-08-2011 / 01:24:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
752 | 91 |
! |
92 |
||
93 |
javaClassObject |
|
94 |
||
95 |
^JavaVM javaClassObjectForClass: self javaClass |
|
96 |
||
97 |
"Created: / 25-11-2010 / 18:10:30 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
98 |
! ! |
|
99 |
||
100 |
!JavaFieldDescriptor methodsFor:'initialization'! |
|
101 |
||
102 |
javaClass:something |
|
103 |
javaClass := something. |
|
104 |
! |
|
105 |
||
106 |
javaClassName:something |
|
107 |
javaClassName := something. |
|
108 |
! ! |
|
109 |
||
110 |
!JavaFieldDescriptor class methodsFor:'documentation'! |
|
111 |
||
112 |
version_SVN |
|
113 |
^ '$Id$' |
|
114 |
! ! |