From a6769783dd2be38c1d4a9d5597fc537a6df49c87 Mon Sep 17 00:00:00 2001 From: Soufyane Labsari <75275113+LABSARI@users.noreply.github.com> Date: Fri, 29 Mar 2024 10:51:08 +0100 Subject: [PATCH] Fix #650 Add $ separator for inner class mooseName. --- src/Famix-Java-Entities/FamixJavaClass.class.st | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Famix-Java-Entities/FamixJavaClass.class.st b/src/Famix-Java-Entities/FamixJavaClass.class.st index 491039d0..5e51b798 100644 --- a/src/Famix-Java-Entities/FamixJavaClass.class.st +++ b/src/Famix-Java-Entities/FamixJavaClass.class.st @@ -173,6 +173,18 @@ FamixJavaClass >> methodsWithoutSutbsAndConstructors [ each isStub not and: [each isConstructor not]]) asSet ] +{ #category : #'as yet unclassified' } +FamixJavaClass >> mooseNameOn: aStream [ + + self typeContainer ifNotNil: [ :parent | + | separator | + parent mooseNameOn: aStream. + separator := '::'. + self isInnerClass ifTrue: [ separator := '$' ]. + aStream nextPutAll: separator ]. + self name ifNotNil: [ :n | aStream nextPutAll: n ] +] + { #category : #'Famix-Extensions' } FamixJavaClass >> structuralChildren [ ^ (OrderedCollection withAll: self methods), self attributes