/** * Adds the appropriate dconst instruction. * <p/> * note, if the value is not 0 or 1 then ldc is used instead */ public void dconst(double value) { if (value == 0.0) { writeByte(Opcode.DCONST_0); } else if (value == 1.0) { writeByte(Opcode.DCONST_1); } else { ldc2(value); return; } currentOffset++; advanceFrame(currentFrame.push("D")); }
/** * Adds the appropriate dconst instruction. * <p/> * note, if the value is not 0 or 1 then ldc is used instead */ public void dconst(double value) { if (value == 0.0) { writeByte(Opcode.DCONST_0); } else if (value == 1.0) { writeByte(Opcode.DCONST_1); } else { ldc2(value); return; } currentOffset++; advanceFrame(currentFrame.push("D")); }
/** * Adds the appropriate lconst instruction. * <p/> * note, if the value is not 0 or 1 then ldc is used instead */ public void lconst(long value) { if (value == 0) { writeByte(Opcode.LCONST_0); } else if (value == 1) { writeByte(Opcode.LCONST_1); } else { ldc2(value); return; } currentOffset++; advanceFrame(currentFrame.push("J")); }
/** * Adds the appropriate dconst instruction. * <p/> * note, if the value is not 0 or 1 then ldc is used instead */ public void dconst(double value) { if (value == 0.0) { writeByte(Opcode.DCONST_0); } else if (value == 1.0) { writeByte(Opcode.DCONST_1); } else { ldc2(value); return; } currentOffset++; advanceFrame(currentFrame.push("D")); }
/** * Adds the appropriate lconst instruction. * <p/> * note, if the value is not 0 or 1 then ldc is used instead */ public void lconst(long value) { if (value == 0) { writeByte(Opcode.LCONST_0); } else if (value == 1) { writeByte(Opcode.LCONST_1); } else { ldc2(value); return; } currentOffset++; advanceFrame(currentFrame.push("J")); }
/** * Adds the appropriate lconst instruction. * <p/> * note, if the value is not 0 or 1 then ldc is used instead */ public void lconst(long value) { if (value == 0) { writeByte(Opcode.LCONST_0); } else if (value == 1) { writeByte(Opcode.LCONST_1); } else { ldc2(value); return; } currentOffset++; advanceFrame(currentFrame.push("J")); }
/** * Adds the appropriate lconst instruction. * <p/> * note, if the value is not 0 or 1 then ldc is used instead */ public void lconst(long value) { if (value == 0) { writeByte(Opcode.LCONST_0); } else if (value == 1) { writeByte(Opcode.LCONST_1); } else { ldc2(value); return; } currentOffset++; advanceFrame(currentFrame.push("J")); }
/** * Adds the appropriate dconst instruction. * <p/> * note, if the value is not 0 or 1 then ldc is used instead */ public void dconst(double value) { if (value == 0.0) { writeByte(Opcode.DCONST_0); } else if (value == 1.0) { writeByte(Opcode.DCONST_1); } else { ldc2(value); return; } currentOffset++; advanceFrame(currentFrame.push("D")); }
/** * Adds the appropriate lconst instruction. * <p/> * note, if the value is not 0 or 1 then ldc is used instead */ public void lconst(long value) { if (value == 0) { writeByte(Opcode.LCONST_0); } else if (value == 1) { writeByte(Opcode.LCONST_1); } else { ldc2(value); return; } currentOffset++; advanceFrame(currentFrame.push("J")); }
/** * Adds the appropriate dconst instruction. * <p/> * note, if the value is not 0 or 1 then ldc is used instead */ public void dconst(double value) { if (value == 0.0) { writeByte(Opcode.DCONST_0); } else if (value == 1.0) { writeByte(Opcode.DCONST_1); } else { ldc2(value); return; } currentOffset++; advanceFrame(currentFrame.push("D")); }