diff --git a/src/Famix-Value-Exporter/FASTJavaFieldAccess.extension.st b/src/Famix-Value-Exporter/FASTJavaFieldAccess.extension.st index 97e954a..1ff336d 100644 --- a/src/Famix-Value-Exporter/FASTJavaFieldAccess.extension.st +++ b/src/Famix-Value-Exporter/FASTJavaFieldAccess.extension.st @@ -5,3 +5,14 @@ FASTJavaFieldAccess >> accessedAttributeName [ ^ fieldName ] + +{ #category : #'*Famix-Value-Exporter' } +FASTJavaFieldAccess >> accessedAttributesOf: aFamixJavaClass [ + "TODO: ensure 'this' is of the given class..." + + self receiver name = 'this' ifFalse: [ ^ { } ]. + aFamixJavaClass attributes + detect: [ :attribute | attribute name = self fieldName ] + ifFound: [ :attribute | ^ { attribute } ]. + ^ { } +]