-
Notifications
You must be signed in to change notification settings - Fork 177
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
Need ability to access annotations on objects #46
Comments
I'm not sure I fully understand what you mean. Are you talking about a method that returns all annotations of the property or just one specialized annotation that's part of the library? Can you give me some examples of additional information would you put into these/this annotation(s)? |
All annotations of a property Or more generically just expose readMethod From: Daniel Bechlermailto:[email protected] I'm not sure I fully understand what you mean. Are you talking about a method that returns all annotations of the property or just one specialized annotation that's part of the library? Can you give me some examples of additional information would you put into these/this annotation(s)? Reply to this email directly or view it on GitHub: |
Hey, sorry for the late response. The end of the year has been rather busy and didn't leave me much time. I think it's possible to add this feature, but I'm trying to remove the |
Excellent.. From: Daniel Bechler Hey, sorry for the late response. The end of the year has been rather busy and didn't leave me much time. I think it's possible to add this feature, but I'm trying to remove the Reply to this email directly or view it on GitHub: |
I implemented this in in the latest commit. (Messed up the link to this ticket though.) |
Could you also add this convenience method?
|
Done. Added it to PropertyAccessor and Node. |
Hi.. Can you please add ability to access annotations on objects
in de.danielbechler.diff.accessor.Accessor add
Annotation getNodeAnnotation() throws Exception;
in de.danielbechler.diff.accessor.AbstractAccessor
@OverRide
public Annotation getNodeAnnotation() throws Exception {
return null;
}
in de.danielbechler.diff.accessor.PropertyAccessor
@OverRide
public Annotation getNodeAnnotation() throws Exception {
return readMethod.getAnnotations()[0];
}
This way in visitor I can do node.getNodeAnnotation() that potentially can have more info than just the type, value etc..
The text was updated successfully, but these errors were encountered: