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