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>"
|
|
35 |
! !
|
|
36 |
|
752
|
37 |
!JavaClassContentRef2 methodsFor:'comparing'!
|
|
38 |
|
|
39 |
= anotherJavaRef
|
|
40 |
"superclass JavaRef2 says that I am responsible to implement this method"
|
|
41 |
|
|
42 |
^ self shouldImplement
|
|
43 |
!
|
|
44 |
|
|
45 |
hash
|
|
46 |
"superclass JavaRef2 says that I am responsible to implement this method"
|
|
47 |
|
|
48 |
^ self shouldImplement
|
|
49 |
! !
|
|
50 |
|
758
|
51 |
!JavaClassContentRef2 methodsFor:'initialization'!
|
|
52 |
|
|
53 |
initializeNamedAndTyped: aNameAndType inClassIdentifiedByRef: aJavaClassRef
|
|
54 |
|
|
55 |
classRef := aJavaClassRef.
|
|
56 |
nameAndType := aNameAndType.
|
|
57 |
|
|
58 |
super initialize.
|
|
59 |
|
|
60 |
"Modified: / 08-04-2011 / 15:07:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
61 |
! !
|
|
62 |
|
|
63 |
!JavaClassContentRef2 methodsFor:'resolving'!
|
|
64 |
|
|
65 |
invalidateForClass: internalJavaClassName
|
|
66 |
"Invalidate (means call invalidate) reference if it has something to do with given class (e.g Class named internalJavaClassName was unloaded).
|
|
67 |
Return true, if reference was invalidated."
|
|
68 |
|
|
69 |
(classRef invalidateForClass: internalJavaClassName)
|
|
70 |
ifTrue: [ self invalidate. ^ true ].
|
|
71 |
^ false.
|
|
72 |
|
|
73 |
"Modified: / 08-04-2011 / 16:05:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
|
|
74 |
! !
|
|
75 |
|
752
|
76 |
!JavaClassContentRef2 class methodsFor:'documentation'!
|
|
77 |
|
|
78 |
version_SVN
|
|
79 |
^ '$Id$'
|
|
80 |
! !
|
758
|
81 |
|