285286287288289290291292293294295
if (!hasStaticInitialisation) { // Add a static initialisation block for the class since nothing added yet InitClass method = InitClass.getInstance(enhancer); method.initialise(cv); method.execute(); method.close(); } if (!hasDefaultConstructor)
306307308309310311312313314315316
Iterator methodsIter = methods.iterator(); while (methodsIter.hasNext()) { ASMClassMethod method = (ASMClassMethod)methodsIter.next(); method.initialise(cv); method.execute(); method.close(); } if (Serializable.class.isAssignableFrom(enhancer.cls))
338339340341342343344345346347348
cv.visitField(cf.getAccess(), cf.getName(), Type.getDescriptor((Class)cf.getType()), null, cf.getInitialValue()); } if (!hasWriteObject) { ASMClassMethod method = WriteObject.getInstance(enhancer); method.initialise(cv); method.execute(); method.close(); } }