Package org.apache.bcel.generic

Examples of org.apache.bcel.generic.DSTORE


        } else if (type == Type.CHAR) {
           return new ISTORE(index);
        } else if (type == Type.FLOAT) {
           return new FSTORE(index);
        } else if (type == Type.DOUBLE) {
           return new DSTORE(index);
        } else {
           return new ASTORE(index);
        }
    }
View Full Code Here


        } else if (type == Type.CHAR) {
           return new ISTORE(index);
        } else if (type == Type.FLOAT) {
           return new FSTORE(index);
        } else if (type == Type.DOUBLE) {
           return new DSTORE(index);
        } else {
           return new ASTORE(index);
        }
    }
View Full Code Here

  // Store real into a local variable
  il.append(DUP2);
  local = methodGen.addLocalVariable("real_to_boolean_tmp",
             org.apache.bcel.generic.Type.DOUBLE,
             null, null);
  local.setStart(il.append(new DSTORE(local.getIndex())));

  // Compare it to 0.0
  il.append(DCONST_0);
  il.append(DCMPG);
  flowlist.add(il.append(new IFEQ(null)));
View Full Code Here

    public Instruction LOAD(int slot) {
  return new DLOAD(slot);
    }
 
    public Instruction STORE(int slot) {
  return new DSTORE(slot);
    }
View Full Code Here

  // Store real into a local variable
  il.append(DUP2);
  local = methodGen.addLocalVariable("real_to_boolean_tmp",
             org.apache.bcel.generic.Type.DOUBLE,
             il.getEnd(), null);
  il.append(new DSTORE(local.getIndex()));

  // Compare it to 0.0
  il.append(DCONST_0);
  il.append(DCMPG);
  flowlist.add(il.append(new IFEQ(null)));
View Full Code Here

    public Instruction LOAD(int slot) {
  return new DLOAD(slot);
    }
 
    public Instruction STORE(int slot) {
  return new DSTORE(slot);
    }
View Full Code Here

  // Store real into a local variable
  il.append(DUP2);
  local = methodGen.addLocalVariable("real_to_boolean_tmp",
             org.apache.bcel.generic.Type.DOUBLE,
             il.getEnd(), null);
  il.append(new DSTORE(local.getIndex()));

  // Compare it to 0.0
  il.append(DCONST_0);
  il.append(DCMPG);
  flowlist.add(il.append(new IFEQ(null)));
View Full Code Here

    public Instruction LOAD(int slot) {
  return new DLOAD(slot);
    }
 
    public Instruction STORE(int slot) {
  return new DSTORE(slot);
    }
View Full Code Here

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

/* 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));
View Full Code Here

TOP

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

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.