752
|
1 |
"{ Package: 'stx:libjava' }"
|
|
2 |
|
|
3 |
JavaRef2 subclass:#JavaClassContentRef2
|
|
4 |
instanceVariableNames:'classRef nameAndType'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Languages-Java-Reader-Support-new'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
758
|
11 |
!JavaClassContentRef2 class methodsFor:'instance creation'!
|
|
12 |
|
|
13 |
namedAndTyped:arg1 inClassIdentifiedByRef:arg2
|
|
14 |
"Create & return a new instance for arg."
|
|
15 |
|
|
16 |
^ self basicNew initializeNamedAndTyped:arg1 inClassIdentifiedByRef:arg2
|
|
17 |
! !
|
|
18 |
|
|
19 |
!JavaClassContentRef2 methodsFor:'accessing'!
|
|
20 |
|
|
21 |
classRef
|
|
22 |
^ classRef
|
|
23 |
!
|
|
24 |
|
|
25 |
descriptor
|
|
26 |
^ nameAndType descriptor.
|
|
27 |
|
|
28 |
"Created: / 08-04-2011 / 15:08:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
29 |
!
|
|
30 |
|
|
31 |
name
|
|
32 |
^ nameAndType name.
|
|
33 |
|
|
34 |
"Created: / 08-04-2011 / 13:54:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
761
|
35 |
!
|
|
36 |
|
|
37 |
nameAndType
|
|
38 |
^ nameAndType.
|
|
39 |
|
|
40 |
"Created: / 11-04-2011 / 19:57:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
41 |
!
|
|
42 |
|
|
43 |
selector
|
|
44 |
^ nameAndType selector.
|
|
45 |
|
|
46 |
"Created: / 11-04-2011 / 20:38:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
758
|
47 |
! !
|
|
48 |
|
752
|
49 |
!JavaClassContentRef2 methodsFor:'comparing'!
|
|
50 |
|
|
51 |
= anotherJavaRef
|
|
52 |
"superclass JavaRef2 says that I am responsible to implement this method"
|
|
53 |
|
|
54 |
^ self shouldImplement
|
|
55 |
!
|
|
56 |
|
|
57 |
hash
|
|
58 |
"superclass JavaRef2 says that I am responsible to implement this method"
|
|
59 |
|
|
60 |
^ self shouldImplement
|
|
61 |
! !
|
|
62 |
|
758
|
63 |
!JavaClassContentRef2 methodsFor:'initialization'!
|
|
64 |
|
|
65 |
initializeNamedAndTyped: aNameAndType inClassIdentifiedByRef: aJavaClassRef
|
|
66 |
|
|
67 |
classRef := aJavaClassRef.
|
|
68 |
nameAndType := aNameAndType.
|
|
69 |
|
|
70 |
super initialize.
|
|
71 |
|
|
72 |
"Modified: / 08-04-2011 / 15:07:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
73 |
! !
|
|
74 |
|
|
75 |
!JavaClassContentRef2 methodsFor:'resolving'!
|
|
76 |
|
761
|
77 |
invalidate
|
|
78 |
classRef invalidate.
|
|
79 |
super invalidate.
|
|
80 |
|
|
81 |
"Created: / 13-04-2011 / 12:21:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
82 |
!
|
|
83 |
|
758
|
84 |
invalidateForClass: internalJavaClassName
|
|
85 |
"Invalidate (means call invalidate) reference if it has something to do with given class (e.g Class named internalJavaClassName was unloaded).
|
|
86 |
Return true, if reference was invalidated."
|
|
87 |
|
|
88 |
(classRef invalidateForClass: internalJavaClassName)
|
|
89 |
ifTrue: [ self invalidate. ^ true ].
|
|
90 |
^ false.
|
|
91 |
|
|
92 |
"Modified: / 08-04-2011 / 16:05:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
93 |
! !
|
|
94 |
|
752
|
95 |
!JavaClassContentRef2 class methodsFor:'documentation'!
|
|
96 |
|
|
97 |
version_SVN
|
|
98 |
^ '$Id$'
|
|
99 |
! !
|
758
|
100 |
|
761
|
101 |
|