/**
* Sets the value for enum methods/values.
*
* @param key Method to set.
* @param type Name of the enum class type.
* @param value Value for method.
*/
@Override
public void visitEnum(String key, String type, String value) {
try {
annotation.set(key, Enum.valueOf(
(Class<? extends Enum>) Class.forName(Type.getType(type).getClassName()),
value
));
} catch (ClassNotFoundException ex) {
Logger.getLogger("annotation").log(Level.FATAL, null, ex);
}
}
AnnotationImporter.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:Rubus
作者:
评论列表
文章目录