author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 25 Jan 2013 00:15:51 +0000 | |
branch | refactoring-classpath |
changeset 2000 | 13a10b73aa83 |
parent 1864 | 60a8dc26c8c6 |
child 2069 | 75d40b7b986f |
permissions | -rw-r--r-- |
752 | 1 |
" |
877 | 2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
1152 | 3 |
|
1155 | 4 |
New code and modifications done at SWING Research Group [1]: |
1152 | 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 |
||
752 | 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. |
|
877 | 15 |
|
1155 | 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 |
|
1152 | 19 |
as of 1.9.2010 |
752 | 20 |
" |
21 |
"{ Package: 'stx:libjava' }" |
|
22 |
||
23 |
JavaMethod variableSubclass:#JavaMethodWithException |
|
24 |
instanceVariableNames:'exceptionTable' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'Languages-Java-Classes' |
|
28 |
! |
|
29 |
||
30 |
!JavaMethodWithException class methodsFor:'documentation'! |
|
31 |
||
32 |
copyright |
|
33 |
" |
|
877 | 34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
1152 | 35 |
|
1155 | 36 |
New code and modifications done at SWING Research Group [1]: |
1152 | 37 |
|
877 | 38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
39 |
SWING Research Group, Czech Technical University in Prague |
|
40 |
||
752 | 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. |
|
877 | 47 |
|
1155 | 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 |
|
1152 | 51 |
as of 1.9.2010 |
877 | 52 |
|
752 | 53 |
" |
54 |
! ! |
|
55 |
||
56 |
!JavaMethodWithException class methodsFor:'initialization'! |
|
57 |
||
58 |
initialize |
|
59 |
self flags:(self flags bitOr:Behavior flagJavaMethod). |
|
60 |
! ! |
|
61 |
||
62 |
!JavaMethodWithException methodsFor:'accessing'! |
|
63 |
||
1581
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1155
diff
changeset
|
64 |
exceptionClasses |
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1155
diff
changeset
|
65 |
"Return a collection of declared exception classes that this method |
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1155
diff
changeset
|
66 |
throws" |
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1155
diff
changeset
|
67 |
exceptionTable isNil ifTrue: [ ^ nil ]. |
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1155
diff
changeset
|
68 |
^ exceptionTable collect: [:classRef | classRef resolve ]. |
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1155
diff
changeset
|
69 |
|
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1155
diff
changeset
|
70 |
"Created: / 01-08-2012 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1155
diff
changeset
|
71 |
! |
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1155
diff
changeset
|
72 |
|
752 | 73 |
exceptionTable |
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
836
diff
changeset
|
74 |
"return exception table - collection of classRefs" |
836
b64228c3acaa
fixed JavaMethod>>exceptionTable, so junit3 tests are passing now
hlopkmar
parents:
752
diff
changeset
|
75 |
^ exceptionTable. |
752 | 76 |
|
77 |
"Created: / 05-11-1998 / 19:58:38 / cg" |
|
78 |
"Modified: / 04-02-2011 / 22:07:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
836
diff
changeset
|
79 |
"Modified: / 04-06-2011 / 17:20:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
752 | 80 |
! |
81 |
||
82 |
getExceptionTable |
|
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
836
diff
changeset
|
83 |
"return exception table - collection of classRefs" |
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
836
diff
changeset
|
84 |
^ exceptionTable |
752 | 85 |
|
86 |
"Created: / 04-02-2011 / 23:07:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
836
diff
changeset
|
87 |
"Modified: / 04-06-2011 / 17:20:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
752 | 88 |
! |
89 |
||
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
836
diff
changeset
|
90 |
setExceptionTable: anArray |
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
836
diff
changeset
|
91 |
"set exception table - expected arg: collection of classRefs" |
752 | 92 |
exceptionTable := anArray. |
93 |
||
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
836
diff
changeset
|
94 |
"Created: / 05-11-1998 / 19:58:43 / cg" |
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
836
diff
changeset
|
95 |
"Modified: / 04-06-2011 / 17:21:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
752 | 96 |
! ! |
97 |
||
98 |
!JavaMethodWithException class methodsFor:'documentation'! |
|
99 |
||
100 |
version |
|
1864 | 101 |
^ '$Header$' |
102 |
! |
|
103 |
||
104 |
version_HG |
|
105 |
||
106 |
^ '$Changeset: <not expanded> $' |
|
752 | 107 |
! |
108 |
||
109 |
version_SVN |
|
1864 | 110 |
^ '§Id§' |
752 | 111 |
! ! |
112 |
||
113 |
JavaMethodWithException initialize! |