Package net.sf.cglib.core

Source Code of net.sf.cglib.core.DefaultGeneratorStrategy

/*    */ 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
*/
TOP

Related Classes of net.sf.cglib.core.DefaultGeneratorStrategy

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.