Package net.sf.cglib.proxy

Source Code of net.sf.cglib.proxy.NoOpGenerator

/*    */ package net.sf.cglib.proxy;
/*    */
/*    */ import java.util.Iterator;
/*    */ import java.util.List;
/*    */ import net.sf.cglib.core.ClassEmitter;
/*    */ import net.sf.cglib.core.CodeEmitter;
/*    */ import net.sf.cglib.core.EmitUtils;
/*    */ import net.sf.cglib.core.MethodInfo;
/*    */ import net.sf.cglib.core.TypeUtils;
/*    */
/*    */ class NoOpGenerator
/*    */   implements CallbackGenerator
/*    */ {
/* 25 */   public static final NoOpGenerator INSTANCE = new NoOpGenerator();
/*    */
/*    */   public void generate(ClassEmitter ce, CallbackGenerator.Context context, List methods) {
/* 28 */     for (Iterator it = methods.iterator(); it.hasNext(); ) {
/* 29 */       MethodInfo method = (MethodInfo)it.next();
/* 30 */       if ((TypeUtils.isProtected(context.getOriginalModifiers(method))) && (TypeUtils.isPublic(method.getModifiers())))
/*    */       {
/* 32 */         CodeEmitter e = EmitUtils.begin_method(ce, method);
/* 33 */         e.load_this();
/* 34 */         e.load_args();
/* 35 */         e.super_invoke();
/* 36 */         e.return_value();
/* 37 */         e.end_method();
/*    */       }
/*    */     }
/*    */   }
/*    */
/*    */   public void generateStatic(CodeEmitter e, CallbackGenerator.Context context, List methods)
/*    */   {
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
* Qualified Name:     net.sf.cglib.proxy.NoOpGenerator
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of net.sf.cglib.proxy.NoOpGenerator

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.