/* */ package net.sf.cglib.core;
/* */
/* */ import net.sf.cglib.asm.ClassWriter;
/* */
/* */ public class DefaultGeneratorStrategy
/* */ implements GeneratorStrategy
/* */ {
/* 21 */ public static final DefaultGeneratorStrategy INSTANCE = new DefaultGeneratorStrategy();
/* */
/* */ public byte[] generate(ClassGenerator cg) throws Exception {
/* 24 */ ClassWriter cw = getClassWriter();
/* 25 */ transform(cg).generateClass(cw);
/* 26 */ return transform(cw.toByteArray());
/* */ }
/* */
/* */ protected ClassWriter getClassWriter() throws Exception {
/* 30 */ return new DebuggingClassWriter(true);
/* */ }
/* */
/* */ protected byte[] transform(byte[] b) throws Exception {
/* 34 */ return b;
/* */ }
/* */
/* */ protected ClassGenerator transform(ClassGenerator cg) throws Exception {
/* 38 */ return cg;
/* */ }
/* */ }
/* Location: /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
* Qualified Name: net.sf.cglib.core.DefaultGeneratorStrategy
* JD-Core Version: 0.6.0
*/