-
Notifications
You must be signed in to change notification settings - Fork 34
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
Retrieve inner class reference #60
Comments
With |
Yep I knew the |
So I added a |
I'll check the snapshot, thank you very much! |
I checked it out: it works for my specific use case, but it breaks on something more general like this:
By the way I already have a workaround in place, so no hurry on my side. |
This is an issue because inner classes are not automatically referenced when you reference |
I'm a bit unconvinced on this... after all, we are basically just trying to construct a sort of type-safe placeholder for the |
Inner classes are a construct of the Java source files, but when compiled, they reside as 2 independent files on disk and only a "similiar" name links them together. They are - when compiled - indeed 2 separate independent classes. |
I was looking for a way to get a reference to an inner class from another class, but I was not able to find it. I was looking for something like
codeModel.ref("x.y.z.AClass").getInner("Inner")
, which would give a reference tox.y.z.AClass$Inner
.Would it be possible to add it? Or it's already there and I did not find it?
The text was updated successfully, but these errors were encountered: