DCONSTpublic class DCONST extends Instruction implements TypedInstruction, ConstantPushInstructionDCONST - Push 0.0 or 1.0, other values cause an exception
Stack: ... -> ..., |
Fields Summary |
---|
private double | value |
Constructors Summary |
---|
DCONST()Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction(). Not to be used otherwise.
| public DCONST(double f)
super(com.sun.org.apache.bcel.internal.Constants.DCONST_0, (short)1);
if(f == 0.0)
opcode = com.sun.org.apache.bcel.internal.Constants.DCONST_0;
else if(f == 1.0)
opcode = com.sun.org.apache.bcel.internal.Constants.DCONST_1;
else
throw new ClassGenException("DCONST can be used only for 0.0 and 1.0: " + f);
value = f;
|
|