return null;
}
public void visitEnd() {
InnerPropertyDelegateDefine[] newPropertyList = this.classConfig.getNewPropertyList();
for (InnerPropertyDelegateDefine property : newPropertyList) {
MethodVisitor mv = null;
String propertyName = property.propertyName();
String $propertyName = StringUtils.firstCharToUpperCase(propertyName);
String typeDesc = ASMEngineToos.toAsmType(property.getType());
//
if (property.isMarkRead()) {
String methodName = "get" + $propertyName;
String desc = String.format("()%s", typeDesc);
String testDesc = methodName + "()";
//检测是否存在同名方法
if (this.validMethod.contains(testDesc) == false) {
mv = super.visitMethod(ACC_PUBLIC, methodName, desc, null, null);
mv.visitCode();
this.buildGetMethod(mv, propertyName, typeDesc);
mv.visitEnd();
}
}
if (property.isMarkWrite()) {
String methodName = "set" + $propertyName;
String desc = String.format("(%s)V", typeDesc);
String testDesc = String.format("%s(%s)", methodName, typeDesc);;
//检测是否存在同名方法
if (this.validMethod.contains(testDesc) == false) {
mv = super.visitMethod(ACC_PUBLIC, methodName, desc, null, null);
mv.visitCode();
this.buildSetMethod(mv, propertyName, typeDesc);
mv.visitEnd();
}
}
//
}
super.visitEnd();