Slide 53
Slide 53 text
57
# APT + LOMBOK?
• Удачи с JCTree
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This
code and its internal interfaces are subject to change or deletion without notice.
@Override
public void handle(AnnotationValues annotation, JCTree.JCAnnotation ast,
JavacNode annotationNode) {
Context context = annotationNode.getContext();
Javac8BasedLombokOptions options =
Javac8BasedLombokOptions.replaceWithDelombokOptions(context);
options.deleteLombokAnnotations();
JavacHandlerUtil.deleteAnnotationIfNeccessary(annotationNode, Entity.class);
…