Default attributes for UAnnotations

Why 

org.jetbrains.uast.UAnnotation#findAttributeValue

do not return default attribute value if it is not provided on the usage side? It returns null.

0
正式评论

There is no guarantee that default attribute declaration is convertible to UAST (especially if there is no sources avaliable). You'll get more stable results if you'll work via `UAnnotation.javaPsi`

What is the problem with enum annotation parameters except maybe the same as in previous paragraph?

Also, how to get enum annotation parameter from UAnnotation?

0

请先登录再写评论。