LCONSTpublic class LCONST extends Instruction implements TypedInstruction, ConstantPushInstructionLCONST - Push 0 or 1, other values cause an exception
Stack: ... -> ..., |
Fields Summary |
---|
private long | value |
Constructors Summary |
---|
LCONST()Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction(). Not to be used otherwise.
| public LCONST(long l)
super(com.sun.org.apache.bcel.internal.Constants.LCONST_0, (short)1);
if(l == 0)
opcode = com.sun.org.apache.bcel.internal.Constants.LCONST_0;
else if(l == 1)
opcode = com.sun.org.apache.bcel.internal.Constants.LCONST_1;
else
throw new ClassGenException("LCONST can be used only for 0 and 1: " + l);
value = l;
|
|