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-- |
877 | 1 |
" |
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 |
||
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 |
||
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 |
877 | 20 |
" |
752 | 21 |
"{ Package: 'stx:libjava' }" |
22 |
||
761 | 23 |
JavaMethodRef2 subclass:#JavaInterfaceMethodRef2 |
752 | 24 |
instanceVariableNames:'' |
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'Languages-Java-Reader-Support-new' |
|
28 |
! |
|
29 |
||
877 | 30 |
!JavaInterfaceMethodRef2 class methodsFor:'documentation'! |
31 |
||
32 |
copyright |
|
33 |
" |
|
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 |
||
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 |
||
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 |
|
53 |
" |
|
54 |
! ! |
|
752 | 55 |
|
758 | 56 |
!JavaInterfaceMethodRef2 methodsFor:'private - resolving'! |
57 |
||
761 | 58 |
findResolvedStaticValue |
794
9635f32d1723
implemented deeper caching in new resolving refs to help keeping C-code lean and clean
hlopkmar
parents:
779
diff
changeset
|
59 |
self halt: 'tell mh if you have valid use case for calling me'. |
761 | 60 |
|
61 |
"Created: / 28-04-2011 / 22:53:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
794
9635f32d1723
implemented deeper caching in new resolving refs to help keeping C-code lean and clean
hlopkmar
parents:
779
diff
changeset
|
62 |
"Modified: / 18-05-2011 / 12:44:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
761 | 63 |
! |
64 |
||
758 | 65 |
findResolvedValue |
761 | 66 |
"Resolve reference and set valueCache." |
67 |
||
68 |
valueCache := JavaResolver uniqueInstance |
|
69 |
resolveInterfaceMethodIdentifiedByRef: self. |
|
794
9635f32d1723
implemented deeper caching in new resolving refs to help keeping C-code lean and clean
hlopkmar
parents:
779
diff
changeset
|
70 |
classCache := (constantPool at: classRefIndex) resolve. |
9635f32d1723
implemented deeper caching in new resolving refs to help keeping C-code lean and clean
hlopkmar
parents:
779
diff
changeset
|
71 |
classCache ifNil: [ self breakPoint: #mh ]. |
9635f32d1723
implemented deeper caching in new resolving refs to help keeping C-code lean and clean
hlopkmar
parents:
779
diff
changeset
|
72 |
nameAndTypeCache := (constantPool at: nameAndTypeIndex) resolve. |
9635f32d1723
implemented deeper caching in new resolving refs to help keeping C-code lean and clean
hlopkmar
parents:
779
diff
changeset
|
73 |
nameAndTypeCache ifNil: [ self breakPoint: #mh ]. |
761 | 74 |
|
794
9635f32d1723
implemented deeper caching in new resolving refs to help keeping C-code lean and clean
hlopkmar
parents:
779
diff
changeset
|
75 |
"Modified: / 18-05-2011 / 12:44:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
1353 | 76 |
! |
77 |
||
78 |
findResolvedValue: doClassInit |
|
79 |
"Resolve reference and set valueCache." |
|
80 |
||
81 |
valueCache := JavaResolver uniqueInstance |
|
82 |
resolveInterfaceMethodIdentifiedByRef: self. |
|
83 |
classCache := (constantPool at: classRefIndex) resolve: doClassInit. |
|
84 |
classCache ifNil: [ self breakPoint: #mh ]. |
|
85 |
nameAndTypeCache := (constantPool at: nameAndTypeIndex) resolve. |
|
86 |
nameAndTypeCache ifNil: [ self breakPoint: #mh ]. |
|
87 |
||
88 |
"Modified: / 18-05-2011 / 12:44:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
89 |
"Created: / 09-02-2012 / 23:10:44 / mh <hlopik@gmail.com>" |
|
761 | 90 |
! ! |
91 |
||
92 |
!JavaInterfaceMethodRef2 methodsFor:'queries'! |
|
758 | 93 |
|
761 | 94 |
isJavaInterfaceMethodRef |
95 |
"we will see if this is expected behavior" |
|
96 |
||
97 |
^ true. |
|
98 |
||
99 |
"Created: / 14-04-2011 / 15:33:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
758 | 100 |
! ! |
101 |
||
752 | 102 |
!JavaInterfaceMethodRef2 class methodsFor:'documentation'! |
103 |
||
1864 | 104 |
version_HG |
105 |
||
106 |
^ '$Changeset: <not expanded> $' |
|
107 |
! |
|
108 |
||
752 | 109 |
version_SVN |
1864 | 110 |
^ '§Id§' |
752 | 111 |
! ! |