Package org.more.asm

Examples of org.more.asm.ClassVisitor


        Class<?> superClass = this.getSuperClass();
        //2.构建visitor环
        //------第一环,写入
        ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_MAXS);
        //------第二环,用户扩展
        ClassVisitor visitor = this.acceptClass(writer);
        visitor = (visitor == null) ? writer : visitor;
        //------第三环,Aop
        visitor = new AopClassAdapter(visitor, this);
        //3.Read
        String resName = superClass.getName().replace(".", "/") + ".class";
View Full Code Here


        Class<?> superClass = this.getSuperClass();
        //2.构建visitor环
        //------第一环,写入
        ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_MAXS);
        //------第二环,用户扩展
        ClassVisitor visitor = this.acceptClass(writer);
        visitor = (visitor == null) ? writer : visitor;
        //------第三环,ClassAdapter
        visitor = new PropertyDelegateClassAdapter(visitor, this);
        //3.Read
        String resName = superClass.getName().replace(".", "/") + ".class";
View Full Code Here

        Class<?> superClass = this.getSuperClass();
        //2.构建visitor环
        //------第一环,写入
        ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_MAXS);
        //------第二环,用户扩展
        ClassVisitor visitor = this.acceptClass(writer);
        visitor = (visitor == null) ? writer : visitor;
        //------第三环,ClassAdapter
        visitor = new MethodDelegateClassAdapter(visitor, this);
        //3.Read
        String resName = superClass.getName().replace(".", "/") + ".class";
View Full Code Here

        /*二、使用 ClassReader 读取类的基本信息*/
        ClassReader classReader = new ClassReader(inStream);
        className = classReader.getClassName().replace('/', '.');
        /*三、读取类的(名称、父类、接口、注解)信息*/
        final ClassInfo info = new ClassInfo();
        classReader.accept(new ClassVisitor(Opcodes.ASM4) {
            @Override
            public void visit(final int version, final int access, final String name, final String signature, final String superName, final String[] interfaces) {
                //1.读取基本信息
                info.className = name.replace('/', '.');
                if (superName != null) {
View Full Code Here

TOP

Related Classes of org.more.asm.ClassVisitor

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.