Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FamixTrait-s are not meta-described #868

Open
NicolasAnquetil opened this issue Jan 6, 2025 · 3 comments
Open

FamixTrait-s are not meta-described #868

NicolasAnquetil opened this issue Jan 6, 2025 · 3 comments

Comments

@NicolasAnquetil
Copy link
Contributor

FamixJavaAttribute asMooseDescription gives a FM3Class which contains all the FM3Property-s of FamixJavaAttribute

But it does not work for traits:

  • FamixTAttribute asMooseDescription gives a FM3NullClass (which has an "empty description")
  • FamixJavaTBound asMooseDescription gives a FM3NullClass
@jecisc
Copy link
Member

jecisc commented Jan 6, 2025

I think this is the case for all traits. I think we can get meta descriptions only on concrete entities.

This work on concrete entities because the #metamodel method to get the descriptions is implemented on FamixXXXEntity

image

The traits do not inherit this method

@NicolasAnquetil
Copy link
Contributor Author

Yes indeed, but since there is a FM3Trait class very similar to FM3Class, it would seem logical to "finish the job"
I am not sure why it would be limited to concrete entities.

@jecisc
Copy link
Member

jecisc commented Jan 6, 2025

The only limit here is the "how".

Do we generate a #metamodel method on every trait generated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants