author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 24 May 2013 17:55:42 +0100 | |
branch | builtin-class-support |
changeset 2629 | cedb88626902 |
parent 2625 | a91a1db9718e |
child 2966 | afd174546057 |
permissions | -rw-r--r-- |
2624 | 1 |
" |
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
3 |
||
4 |
New code and modifications done at SWING Research Group [1]: |
|
5 |
||
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 |
||
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 |
|
19 |
as of 1.9.2010 |
|
20 |
" |
|
21 |
"{ Package: 'stx:libjava' }" |
|
22 |
||
23 |
JavaMirror subclass:#JavaArrayMirror |
|
24 |
instanceVariableNames:'' |
|
25 |
classVariableNames:'' |
|
2625
a91a1db9718e
Make JavaMirror to access classes through pool vars.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2624
diff
changeset
|
26 |
poolDictionaries:'JavaVMData' |
2624 | 27 |
category:'Languages-Java-Classes' |
28 |
! |
|
29 |
||
30 |
!JavaArrayMirror class methodsFor:'documentation'! |
|
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
35 |
||
36 |
New code and modifications done at SWING Research Group [1]: |
|
37 |
||
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 |
||
48 |
[1] Code written at SWING Research Group contains a signature |
|
49 |
of one of the above copright owners. For exact set of such code, |
|
50 |
see the differences between this version and version stx:libjava |
|
51 |
as of 1.9.2010 |
|
52 |
||
53 |
" |
|
54 |
! ! |
|
55 |
||
56 |
!JavaArrayMirror methodsFor:'accessing'! |
|
57 |
||
58 |
getClassLoader |
|
59 |
"Returns a class loader that loaded this class" |
|
60 |
||
61 |
^ klass javaComponentClass javaMirror getClassLoader |
|
62 |
||
63 |
"Modified: / 31-07-2012 / 18:35:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
64 |
! |
|
65 |
||
66 |
getDeclaredConstructors:publicOnly |
|
67 |
"Returns an java.lang.reflect.Constructor[] with all constructors |
|
68 |
declared by this class" |
|
69 |
||
2625
a91a1db9718e
Make JavaMirror to access classes through pool vars.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2624
diff
changeset
|
70 |
^ java_lang_reflect_Constructor javaArrayClass new:0. |
2624 | 71 |
|
72 |
"Modified: / 18-05-2013 / 10:57:30 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
73 |
! |
|
74 |
||
75 |
getDeclaredFields:publicOnly |
|
76 |
"Returns an java.lang.reflect.Field[] with all constructors |
|
77 |
declared by this class." |
|
78 |
||
2625
a91a1db9718e
Make JavaMirror to access classes through pool vars.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2624
diff
changeset
|
79 |
^java_lang_reflect_Field javaArrayClass new:0. |
2624 | 80 |
|
81 |
"Modified: / 18-05-2013 / 10:57:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
82 |
! |
|
83 |
||
84 |
getDeclaredMethods:publicOnly |
|
85 |
"Returns an java.lang.reflect.Method[] with all methods |
|
86 |
declared by this class" |
|
87 |
||
2625
a91a1db9718e
Make JavaMirror to access classes through pool vars.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2624
diff
changeset
|
88 |
^ java_lang_reflect_Method javaArrayClass new:0. |
2624 | 89 |
|
90 |
"Modified: / 18-05-2013 / 10:57:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
91 |
! |
|
92 |
||
93 |
getInterfaces |
|
94 |
"Return a list if interfaces" |
|
95 |
||
96 |
^ Array |
|
97 |
with: (JavaVM classForName: 'java.lang.Cloneable' definedBy: nil) |
|
98 |
with: (JavaVM classForName: 'java.io.Serializable' definedBy: nil) |
|
99 |
||
100 |
"Modified: / 18-05-2013 / 10:57:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
101 |
! |
|
102 |
||
103 |
getModifiers |
|
104 |
"Return class modifiers (public/abstract/final...)" |
|
105 |
||
106 |
^ JavaConstants ACC_ABSTRACT | JavaConstants ACC_FINAL | JavaConstants ACC_PUBLIC |
|
107 |
||
108 |
"Modified: / 22-08-2012 / 11:02:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
109 |
! ! |
|
110 |
||
111 |
!JavaArrayMirror class methodsFor:'documentation'! |
|
112 |
||
113 |
version_HG |
|
114 |
||
115 |
^ '$Changeset: <not expanded> $' |
|
116 |
! ! |
|
117 |