Package org.objectweb.asm

Examples of org.objectweb.asm.CodeVisitor.visitIntInsn()


        "java/lang/System", "err", "Ljava/io/PrintStream;");
      sv.visitLdcInsn("_set" + name + " called");
      sv.visitMethodInsn(INVOKEVIRTUAL,
        "java/io/PrintStream", "println", "(Ljava/lang/String;)V");
      sv.visitVarInsn(ALOAD, 0);
      sv.visitIntInsn(t.getOpcode(ILOAD), 1);
      sv.visitFieldInsn(PUTFIELD, owner, name, desc);
      sv.visitInsn(RETURN);
      sv.visitMaxs(1 + size, 1 + size);
    }
  }
View Full Code Here


        generateFieldNamesInit(gc, cv);
        generateFieldTypesInit(gc, staticfieldNames, cv);

        // Field flags
        cv.visitInsn(ICONST_0);
        cv.visitIntInsn(NEWARRAY, T_BYTE);
        cv.visitFieldInsn(PUTSTATIC, gc.classToWriteJCN, "FIELD_FLAGS", "[B");
       
        //Super class
        if (gc.sc.getSuperClassName() == null) {
            cv.visitInsn(ACONST_NULL);
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.