for (Method member : members) {
if (Modifier.isPublic(member.getModifiers())
&& member.getParameterTypes().length == 0
&& member.getDeclaringClass() == annotation.annotationType()) {
Object value = member.invoke(annotation, new Object[0]);
MemberValue memberValue = createMemberValue(
classFile.getConstPool(), pool.getCtClass(member.getReturnType().getCanonicalName()), value);
ja.addMemberValue(member.getName(), memberValue);
}
}
attribute.addAnnotation(ja);