You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@groovy.apache.org by Mario Garcia <ma...@gmail.com> on 2016/04/20 13:56:28 UTC

[AST] Is there any way to remove an AnnotationNode from an AnnotatedNode ?

I don't know how to do this. Looking the g/api there is a "addAnnotation"
but there is not a "removeAnnotation" like method.

Mario

Re: [AST] Is there any way to remove an AnnotationNode from an AnnotatedNode ?

Posted by Mario Garcia <ma...@gmail.com>.
Oh I didn't know that. Thank you Shil :)

2016-04-20 16:20 GMT+02:00 Shil Sinha <sh...@gmail.com>:

> The annotationNodes list for an AnnotatedNode is accessible and and
> mutable so you should be able to remove it yourself.
>
> On Wed, Apr 20, 2016 at 7:56 AM, Mario Garcia <ma...@gmail.com>
> wrote:
>
>> I don't know how to do this. Looking the g/api there is a "addAnnotation"
>> but there is not a "removeAnnotation" like method.
>>
>> Mario
>>
>
>

Re: [AST] Is there any way to remove an AnnotationNode from an AnnotatedNode ?

Posted by Shil Sinha <sh...@gmail.com>.
The annotationNodes list for an AnnotatedNode is accessible and and mutable
so you should be able to remove it yourself.

On Wed, Apr 20, 2016 at 7:56 AM, Mario Garcia <ma...@gmail.com> wrote:

> I don't know how to do this. Looking the g/api there is a "addAnnotation"
> but there is not a "removeAnnotation" like method.
>
> Mario
>