Skip to content

Commit

Permalink
Fix #650
Browse files Browse the repository at this point in the history
Add  $ separator for inner class mooseName.
  • Loading branch information
LABSARI committed Mar 29, 2024
1 parent 555efc6 commit a676978
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Famix-Java-Entities/FamixJavaClass.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a676978

Please sign in to comment.