Examples of visitEnd()


Examples of org.mockito.asm.ClassWriter.visitEnd()

    public static byte[] makeMarkerInterface(String qualifiedName) {
        String relativePath = qualifiedName.replace('.', '/');

        ClassWriter cw = new ClassWriter(0);
        cw.visit(V1_6, ACC_PUBLIC + ACC_ABSTRACT + ACC_INTERFACE, relativePath, null, "java/lang/Object", null);
        cw.visitEnd();

        return cw.toByteArray();
    }

}
View Full Code Here

Examples of org.mockito.asm.FieldVisitor.visitEnd()

        }
        n = attrs == null ? 0 : attrs.size();
        for (i = 0; i < n; ++i) {
            fv.visitAttribute((Attribute) attrs.get(i));
        }
        fv.visitEnd();
    }
}
View Full Code Here

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

Examples of org.mvel2.asm.AnnotationVisitor.visitEnd()

                                }
                                break;
                            }
                        }
                    }
                    av0.visitEnd();
                }
            }

            for ( FieldDefinition field : classDef.getFieldsDefinitions() ) {
                buildField( cw, field );
View Full Code Here

Examples of org.mvel2.asm.ClassWriter.visitEnd()

        buildSpecificMethods( cw, name, core );

        buildExtensionMethods( cw, name, core );

        cw.visitEnd();

        return cw.toByteArray();
    }

View Full Code Here

Examples of org.mvel2.asm.FieldVisitor.visitEnd()

                            ACC_PUBLIC + ACC_STATIC + ACC_ABSTRACT + ACC_INTERFACE );


        {
            fv = cw.visitField(0, "object", descrCore, null, null);
            fv.visitEnd();
        }


        {
            mv = cw.visitMethod(ACC_PUBLIC,
View Full Code Here

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

            }
            mv.visitVarInsn( ILOAD, 1 );
            mv.visitInsn( IRETURN );
//            mv.visitMaxs( x, y );
            mv.visitMaxs( 0, 0 );
            mv.visitEnd();
        }
    }


View Full Code Here

Examples of org.nutz.repo.org.objectweb.asm.ClassWriter.visitEnd()

                                                   classZ.getName()
                                                         .replace('.', '/'),
                                                   constructors);
        }

        cw.visitEnd();

        Class<?> xClass = DefaultClassDefiner.def(myName.replace('/', '.'),
                                              cw.toByteArray());
        try {
            xClass.getField(SrcClass_FieldName).set(null, classZ);
View Full Code Here

Examples of org.nutz.repo.org.objectweb.asm.MethodVisitor.visitEnd()

                               "org/nutz/lang/reflect/AbstractFastClass",
                               "<init>",
                               "()V");
            mv.visitInsn(RETURN);
            mv.visitMaxs(1, 1);
            mv.visitEnd();
        }
        // 添加默认字段
        {
            cw.visitField(ACC_PUBLIC + ACC_STATIC,
                          FastClassFactory.MethodArray_FieldName,
View Full Code Here

Examples of org.objectweb.asm.AnnotationVisitor.visitEnd()

  private void addAnnotation() {
    if (!isAnnotationPresent) {
      AnnotationVisitor av = cv.visitAnnotation(annotationDesc, true);
      if (av != null) {
        av.visitEnd();
      }
      isAnnotationPresent = true;
    }
  }
}
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.