You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing an annotation processor you can use Types.asMemeberOf() to resolve the concrete type of a method based on the enclosing class. Ex if you had:
Besides using the type directly, I guess Types.asMemberOf() is also useful on deducing the type arguments. This can be expensive potentially as it needs to resolve all the way up to the supertype that contains the member in question.
When writing an annotation processor you can use Types.asMemeberOf() to resolve the concrete type of a method based on the enclosing class. Ex if you had:
you could get that
bar()
in the context ofFoo
returnsString
.The text was updated successfully, but these errors were encountered: