Package org.more.asm

Examples of org.more.asm.MethodVisitor.visitEnd()


        //2.忽略构造方法,aop包装不会考虑构造方法。
        if (name.equals("<init>") == true) {
            MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);
            mv.visitCode();
            this.visitConstruction(mv, name, desc);
            mv.visitEnd();
            return null;
        }
        return null;
    }
    public void visitEnd() {
View Full Code Here


                //检测是否存在同名方法
                if (this.validMethod.contains(testDesc) == false) {
                    mv = super.visitMethod(ACC_PUBLIC, methodName, desc, null, null);
                    mv.visitCode();
                    this.buildGetMethod(mv, propertyName, typeDesc);
                    mv.visitEnd();
                }
            }
            if (property.isMarkWrite()) {
                String methodName = "set" + $propertyName;
                String desc = String.format("(%s)V", typeDesc);
View Full Code Here

                //检测是否存在同名方法
                if (this.validMethod.contains(testDesc) == false) {
                    mv = super.visitMethod(ACC_PUBLIC, methodName, desc, null, null);
                    mv.visitCode();
                    this.buildSetMethod(mv, propertyName, typeDesc);
                    mv.visitEnd();
                }
            }
            //
        }
        super.visitEnd();
View Full Code Here

            }
            //
            MethodVisitor mv = this.visitMethod(access, name, desc, signature, exceptions);
            mv.visitCode();
            this.visitProxyMethod(mv, name, desc);//输出新方法。
            mv.visitEnd();
        }
        //3.输出“$aopFun”方法
        for (Method targetMethod : this.aopMethodMap) {
            int access = Modifier.PRIVATE;
            String name = targetMethod.getName();
View Full Code Here

            }
            //
            MethodVisitor mv = this.visitMethod(access, AopPrefix + name, desc, signature, exceptions);
            mv.visitCode();
            this.visitAOPMethod(mv, name, desc);//输出新方法。
            mv.visitEnd();
        }
        //4.采集类本身的方法。
        Method[] methodSet2 = this.classConfig.getSuperClass().getDeclaredMethods();
        for (Method targetMethod : methodSet2) {
            String selfMethodDesc = ASMEngineToos.toAsmFullDesc(targetMethod);
View Full Code Here

        //2.忽略构造方法,aop包装不会考虑构造方法。
        if (name.equals("<init>") == true) {
            MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);
            mv.visitCode();
            this.visitConstruction(mv, name, desc);
            mv.visitEnd();
            return null;
        }
        //2.兼容如果有其它ClassVisitor动态输出方法时不会影响到它。
        String testFullDesc = name + desc;
        if (this.validMethod.contains(testFullDesc) == false) {
View Full Code Here

        //2.忽略构造方法,aop包装不会考虑构造方法。
        if (name.equals("<init>") == true) {
            MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);
            mv.visitCode();
            this.visitConstruction(mv, name, desc);
            mv.visitEnd();
            return null;
        }
        return null;
    }
    //
View Full Code Here

                if (this.validMethod.contains(typeDesc) == false) {
                    String desc = ASMEngineToos.toAsmDesc(tMethod);
                    MethodVisitor mv = super.visitMethod(ACC_PUBLIC, mName, desc, null, null);
                    mv.visitCode();
                    this.buildInterfaceMethod(mv, mName, desc, faceType);
                    mv.visitEnd();
                }
                //
            }
            //
        }
View Full Code Here

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.