0
我有一个具有某些属性的类,它们使用一个自定义注释进行注释,并且我希望将其信息放入另一个类中。获得带注释的字段变量额外信息
如何创建检索注释实例以及如何获取其额外信息?
我的源代码:
/**custom annotation **/
public @interface Info {
public String name();
}
/**class where i used custom annotation **/
class ABC {
@Info(name="Institution Name")
private String Name;
}
的可能的复制[在运行时获取的注释信息(http://stackoverflow.com/questions/4435036/get-the-annotation-information-at-runtime) – Aaron