aMethod = CtNewMethod.getter(booleanGetterName(aProp), aNewField);
}
inheritAnnotations(theClass, aMethod);
SignatureAttribute attr = (SignatureAttribute) aNewField.getFieldInfo().getAttribute(SignatureAttribute.tag);
if (attr != null) {
aMethod.getMethodInfo().addAttribute(new SignatureAttribute(aMethod.getMethodInfo().getConstPool(), "()"+attr.getSignature()));
}
theClass.addMethod(aMethod);
}
if (!hasMethod(theClass, setterName(aProp))) {
CtMethod aMethod = CtNewMethod.setter(setterName(aProp), aNewField);
inheritAnnotations(theClass, aMethod);
SignatureAttribute attr = (SignatureAttribute) aNewField.getFieldInfo().getAttribute(SignatureAttribute.tag);
if (attr != null) {
aMethod.getMethodInfo().addAttribute(new SignatureAttribute(aMethod.getMethodInfo().getConstPool(), "("+attr.getSignature()+")V"));
}
theClass.addMethod(aMethod);
}
}