override doTransform(MutableClassDeclaration annotatedClass, extension TransformationContext context) {
annotatedClass.annotations.findFirst[annotationTypeDeclaration == MyAnnotation.newTypeReference.type].remove
}
Cheers,
Andreas
Hi!I'm working on a company project, and have a private(personal) Active Annotation processor (also with an Annotation used to trigger it) in a separate project which I don't want to release to company. The problem is the Annotation used to trigger Active Annotation compilation is automatically output to generated Java source code. It doesn't have any use in company project so I wonder if there is a way to erase this Annotation from generated Java source.Thanks!
--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
BTW a related question: In my experience, when I modify an Active Annotation processor code and save it, and build the workspace without cleaning, those AA target code won't automatically regenerate, will they? Now I have to manually modify something in AA target code and save it and build the workspace, before the change in AA processor is reflected in generated AA target code. This is inconvenient when there are multiple AA target files. Is it the way it works currently? Or am I missing something?