org.apache.bcel.generic

Class PUSH

public final class PUSH extends Object implements CompoundInstruction, VariableLengthInstruction, InstructionConstants

Wrapper class for push operations, which are implemented either as BIPUSH, LDC or xCONST_n instructions.
Constructor Summary
PUSH(ConstantPoolGen cp, int value)
This constructor also applies for values of type short, char, byte
PUSH(ConstantPoolGen cp, boolean value)
PUSH(ConstantPoolGen cp, float value)
PUSH(ConstantPoolGen cp, long value)
PUSH(ConstantPoolGen cp, double value)
PUSH(ConstantPoolGen cp, String value)
PUSH(ConstantPoolGen cp, Number value)
PUSH(ConstantPoolGen cp, Character value)
creates a push object from a Character value.
PUSH(ConstantPoolGen cp, Boolean value)
Method Summary
InstructiongetInstruction()
InstructionListgetInstructionList()
StringtoString()

Constructor Detail

PUSH

public PUSH(ConstantPoolGen cp, int value)
This constructor also applies for values of type short, char, byte

Parameters: cp Constant pool value to be pushed

PUSH

public PUSH(ConstantPoolGen cp, boolean value)

Parameters: cp Constant pool value to be pushed

PUSH

public PUSH(ConstantPoolGen cp, float value)

Parameters: cp Constant pool value to be pushed

PUSH

public PUSH(ConstantPoolGen cp, long value)

Parameters: cp Constant pool value to be pushed

PUSH

public PUSH(ConstantPoolGen cp, double value)

Parameters: cp Constant pool value to be pushed

PUSH

public PUSH(ConstantPoolGen cp, String value)

Parameters: cp Constant pool value to be pushed

PUSH

public PUSH(ConstantPoolGen cp, Number value)

Parameters: cp Constant pool value to be pushed

PUSH

public PUSH(ConstantPoolGen cp, Character value)
creates a push object from a Character value. Warning: Make sure not to attempt to allow autoboxing to create this value parameter, as an alternative constructor will be called

Parameters: cp Constant pool value to be pushed

PUSH

public PUSH(ConstantPoolGen cp, Boolean value)

Parameters: cp Constant pool value to be pushed

Method Detail

getInstruction

public final Instruction getInstruction()

getInstructionList

public final InstructionList getInstructionList()

toString

public String toString()

Returns: mnemonic for instruction