使用CodeModel Java API覆盖注释

use*_*584 1 java code-generation sun-codemodel

我如何@Override使用codeModel为我的方法添加注释?

JMethod update = classe.method(JMod.PUBLIC, void.class,"update");
update.annotate(?); 
Run Code Online (Sandbox Code Playgroud)

我没有找到@Override班级.

Dip*_*pak 5

这就是我使用代码模型在重写方法上注释覆盖注释的方法.

JMethod update = classe.method(JMod.PUBLIC, void.class,"update");
update .annotate(jCodeModel.ref(Override.class));
Run Code Online (Sandbox Code Playgroud)

PS ::迟到的回复,可能会帮助其他人找到同样的问题.