Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ 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 cgthrows 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[] bthrows Exception {
/* 34 */     return b;
/*    */   }
/*    */ 
/*    */   protected ClassGenerator transform(ClassGenerator cgthrows 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
 */
New to GrepCode? Check out our FAQ X