-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
feature: add first metamodel support #1378
Conversation
6323bbc
to
51ea825
Compare
It is on good way! May be I will have Xmas sooner? ;-) Some ideas: May be it might return Set instead of Collection. The returned references have assigned different Factory instance, may be we should add new type of spoon object under Factory, called Or return Set with qualified names of interfaces? It is faster to search in it. |
result.add(factory.Type().get(spoon.reflect.reference.CtTypeReference.class)); | ||
result.add(factory.Type().get(spoon.reflect.reference.CtUnboundVariableReference.class)); | ||
result.add(factory.Type().get(spoon.reflect.reference.CtVariableReference.class)); | ||
result.add(factory.Type().get(spoon.reflect.reference.CtWildcardReference.class)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you do this by hand instead of retrieving all classes of interesting packages by reflection?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know the performance of reflection?
Agree, done.
Yes, but the
Let's start with a stateless design first (stateless is better), we'll modify it later if needed.
I would prefer domain-specific types over strings |
first step for #1183
WDYT?