Skip to content

Commit dc70623

Browse files
authored
Merge pull request #740 from moosetechnology/650-Famix-Java-mooseNameOn-on-Java-inner-class-does-not-include-
Fix #650
2 parents 555efc6 + a676978 commit dc70623

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Famix-Java-Entities/FamixJavaClass.class.st

+12
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,18 @@ FamixJavaClass >> methodsWithoutSutbsAndConstructors [
173173
each isStub not and: [each isConstructor not]]) asSet
174174
]
175175

176+
{ #category : #'as yet unclassified' }
177+
FamixJavaClass >> mooseNameOn: aStream [
178+
179+
self typeContainer ifNotNil: [ :parent |
180+
| separator |
181+
parent mooseNameOn: aStream.
182+
separator := '::'.
183+
self isInnerClass ifTrue: [ separator := '$' ].
184+
aStream nextPutAll: separator ].
185+
self name ifNotNil: [ :n | aStream nextPutAll: n ]
186+
]
187+
176188
{ #category : #'Famix-Extensions' }
177189
FamixJavaClass >> structuralChildren [
178190
^ (OrderedCollection withAll: self methods), self attributes

0 commit comments

Comments
 (0)