public static void addSignature(CtField field, String signature)
{
FieldInfo fieldInfo = field.getFieldInfo();
ConstPool constPool = fieldInfo.getConstPool();
SignatureAttribute signatureAttribute = new SignatureAttribute(constPool, signature);
fieldInfo.addAttribute(signatureAttribute);
}
public static void addSignature(CtMethod method, String signature)
{
MethodInfo methodInfo = method.getMethodInfo();