Package org.apache.bcel.generic

Examples of org.apache.bcel.generic.ISTORE


  @SuppressWarnings("unused")
  // Called using reflection
  private Instruction createInstructionIstore(Element inst) throws IllegalXMLVMException
  {
    int idx= Integer.parseInt(inst.getAttributeValue("index"));
    return new ISTORE(idx);
  }
View Full Code Here


/* 607 */     if (type.equals(Boolean.TYPE.getName()))
/*     */     {
/* 609 */       int x = cp.addClass("java.lang.Boolean");
/* 610 */       int constrIndex = cp.addMethodref("java.lang.Boolean", "<init>", "(B)V");
/*     */
/* 612 */       il.append(new ISTORE(4));
/* 613 */       il.append(new NEW(x));
/* 614 */       il.append(new ASTORE(5));
/* 615 */       il.append(new ALOAD(5));
/* 616 */       il.append(new ILOAD(4));
/* 617 */       il.append(new INVOKESPECIAL(constrIndex));
/* 618 */       il.append(new ALOAD(5));
/*     */     }
/* 621 */     else if (type.equals(Short.TYPE.getName()))
/*     */     {
/* 623 */       int x = cp.addClass("java.lang.Short");
/* 624 */       int constrIndex = cp.addMethodref("java.lang.Short", "<init>", "(S)V");
/*     */
/* 626 */       il.append(new ISTORE(4));
/* 627 */       il.append(new NEW(x));
/* 628 */       il.append(new ASTORE(5));
/* 629 */       il.append(new ALOAD(5));
/* 630 */       il.append(new ILOAD(4));
/* 631 */       il.append(new INVOKESPECIAL(constrIndex));
/* 632 */       il.append(new ALOAD(5));
/*     */     }
/* 635 */     else if (type.equals(Long.TYPE.getName()))
/*     */     {
/* 637 */       int x = cp.addClass("java.lang.Long");
/* 638 */       int constrIndex = cp.addMethodref("java.lang.Long", "<init>", "(J)V");
/*     */
/* 640 */       il.append(new LSTORE(4));
/* 641 */       il.append(new NEW(x));
/* 642 */       il.append(new ASTORE(6));
/* 643 */       il.append(new ALOAD(6));
/* 644 */       il.append(new LLOAD(4));
/* 645 */       il.append(new INVOKESPECIAL(constrIndex));
/* 646 */       il.append(new ALOAD(6));
/*     */     }
/* 649 */     else if (type.equals(Integer.TYPE.getName()))
/*     */     {
/* 651 */       int x = cp.addClass("java.lang.Integer");
/* 652 */       int constrIndex = cp.addMethodref("java.lang.Integer", "<init>", "(I)V");
/*     */
/* 654 */       il.append(new ISTORE(4));
/* 655 */       il.append(new NEW(x));
/* 656 */       il.append(new ASTORE(5));
/* 657 */       il.append(new ALOAD(5));
/* 658 */       il.append(new ILOAD(4));
/* 659 */       il.append(new INVOKESPECIAL(constrIndex));
/* 660 */       il.append(new ALOAD(5));
/*     */     }
/* 663 */     else if (type.equals(Float.TYPE.getName()))
/*     */     {
/* 665 */       int x = cp.addClass("java.lang.Float");
/* 666 */       int constrIndex = cp.addMethodref("java.lang.Float", "<init>", "(F)V");
/*     */
/* 668 */       il.append(new FSTORE(4));
/* 669 */       il.append(new NEW(x));
/* 670 */       il.append(new ASTORE(5));
/* 671 */       il.append(new ALOAD(5));
/* 672 */       il.append(new FLOAD(4));
/* 673 */       il.append(new INVOKESPECIAL(constrIndex));
/* 674 */       il.append(new ALOAD(5));
/*     */     }
/* 677 */     else if (type.equals(Double.TYPE.getName()))
/*     */     {
/* 679 */       int x = cp.addClass("java.lang.Double");
/* 680 */       int constrIndex = cp.addMethodref("java.lang.Double", "<init>", "(D)V");
/*     */
/* 682 */       il.append(new DSTORE(4));
/* 683 */       il.append(new NEW(x));
/* 684 */       il.append(new ASTORE(6));
/* 685 */       il.append(new ALOAD(6));
/* 686 */       il.append(new DLOAD(4));
/* 687 */       il.append(new INVOKESPECIAL(constrIndex));
/* 688 */       il.append(new ALOAD(6));
/*     */     }
/* 691 */     else if (type.equals(Character.TYPE.getName()))
/*     */     {
/* 693 */       int x = cp.addClass("java.lang.Character");
/* 694 */       int constrIndex = cp.addMethodref("java.lang.Character", "<init>", "(C)V");
/*     */
/* 696 */       il.append(new ISTORE(4));
/* 697 */       il.append(new NEW(x));
/* 698 */       il.append(new ASTORE(5));
/* 699 */       il.append(new ALOAD(5));
/* 700 */       il.append(new ILOAD(4));
/* 701 */       il.append(new INVOKESPECIAL(constrIndex));
/* 702 */       il.append(new ALOAD(5));
/*     */     }
/* 705 */     else if (type.equals(Byte.TYPE.getName()))
/*     */     {
/* 707 */       int x = cp.addClass("java.lang.Byte");
/* 708 */       int constrIndex = cp.addMethodref("java.lang.Byte", "<init>", "(B)V");
/*     */
/* 710 */       il.append(new ISTORE(4));
/* 711 */       il.append(new NEW(x));
/* 712 */       il.append(new ASTORE(5));
/* 713 */       il.append(new ALOAD(5));
/* 714 */       il.append(new ILOAD(4));
/* 715 */       il.append(new INVOKESPECIAL(constrIndex));
View Full Code Here

TOP

Related Classes of org.apache.bcel.generic.ISTORE

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.