-
Notifications
You must be signed in to change notification settings - Fork 34
-
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
Add method getAsString #58
Comments
It will depend on how much change it would require on public classes. |
And what's about publishing it for v3 ? |
For v3 it would be ok as long as it's not a huge BC break on the AnnotationsBag public API, which I believe is perfectly possible to do with internal changes only. |
That would actually require to change the An other approach would be to pass only the raw string, and the |
Currently there is a method
AnnotationBag::getAsArray()
That's very convenient when we want to make sure to retrieve an array.
What's about adding a method
AnnotationBag::getAsString()
orAnnotationBag::getAsRawString()
to get the annotation value as a string. Even if it's in array or object annotation,
we sometime want to get this value as the raw original string.
We could do that by changing the parser. But sometime we can need both of the ouput
depending on the annotation name.
What's your opinion ?
The text was updated successfully, but these errors were encountered: