Package net.sf.cglib.asm

Examples of net.sf.cglib.asm.CodeVisitor


                exceptions[excCount] = exceptionTypes[excCount].getName();
                exceptions[excCount] = exceptions[excCount].replace('.',
                                                                    '/');
            }

            CodeVisitor cv = cw.visitMethod(Constants.ACC_PUBLIC + Constants.ACC_ABSTRACT,
                                            methods[count].getName(),
                                            argsAndReturn.toString(),
                                            exceptions,
                                            null);
            cw.visitEnd();
View Full Code Here


                exceptions[excCount] = exceptionTypes[excCount].getName();
                exceptions[excCount] = exceptions[excCount].replace('.',
                                                                    '/');
            }

            CodeVisitor cv = cw.visitMethod(Constants.ACC_PUBLIC + Constants.ACC_ABSTRACT,
                                            methods[count].getName(),
                                            argsAndReturn.toString(),
                                            exceptions,
                                            null);
            cw.visitEnd();
View Full Code Here

/*     */   }
/*     */
/*     */   public CodeEmitter begin_method(int access, Signature sig, Type[] exceptions, Attribute attrs) {
/* 135 */     if (this.classInfo == null)
/* 136 */       throw new IllegalStateException("classInfo is null! " + this);
/* 137 */     CodeVisitor v = this.cv.visitMethod(access, sig.getName(), sig.getDescriptor(), TypeUtils.toInternalNames(exceptions), attrs);
/*     */
/* 142 */     if ((sig.equals(Constants.SIG_STATIC)) && (!TypeUtils.isInterface(getAccess()))) {
/* 143 */       this.rawStaticInit = v;
/* 144 */       CodeVisitor wrapped = new CodeAdapter(v) {
/*     */         public void visitMaxs(int maxStack, int maxLocals) {
/*     */         }
/*     */
/*     */         public void visitInsn(int insn) {
/* 149 */           if (insn != 177)
View Full Code Here

/*     */
/*  43 */         public void visit(int version, int access, String name, String superName, String[] interfaces, String sourceFile) { super.visit(version, access, name, superName, interfaces, sourceFile);
/*  44 */           this.flag = name.equals("java/lang/ClassLoader"); }
/*     */
/*     */         public CodeVisitor visitMethod(int access, String name, String desc, String[] exceptions, Attribute attrs) {
/*  47 */           CodeVisitor v = super.visitMethod(access, name, desc, exceptions, attrs);
/*  48 */           if (this.flag) {
/*  49 */             v = new AsmClassLoaderPreProcessor.PreProcessingVisitor(v, access, desc);
/*     */           }
/*  51 */           return v;
/*     */         }
View Full Code Here

/* 47 */     this.cv1.visitInnerClass(name, outerName, innerName, access);
/* 48 */     this.cv2.visitInnerClass(name, outerName, innerName, access);
/*    */   }
/*    */
/*    */   public CodeVisitor visitMethod(int access, String name, String desc, String[] exceptions, Attribute attrs) {
/* 52 */     CodeVisitor code1 = this.cv1.visitMethod(access, name, desc, exceptions, attrs);
/* 53 */     CodeVisitor code2 = this.cv2.visitMethod(access, name, desc, exceptions, attrs);
/* 54 */     if (code1 == null)
/* 55 */       return code2;
/* 56 */     if (code2 == null) {
/* 57 */       return code1;
/*    */     }
View Full Code Here

TOP

Related Classes of net.sf.cglib.asm.CodeVisitor

Copyright © 2018 www.massapicom. 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.