org.apache.bcel.generic

Class BIPUSH

public class BIPUSH extends Instruction implements ConstantPushInstruction

BIPUSH - Push byte on stack
Stack: ... -> ..., value
Constructor Summary
BIPUSH(byte b)
Push byte on stack
Method Summary
voidaccept(Visitor v)
Call corresponding visitor method(s).
voiddump(DataOutputStream out)
Dump instruction as byte code to stream out.
TypegetType(ConstantPoolGen cp)
NumbergetValue()
protected voidinitFromFile(ByteSequence bytes, boolean wide)
Read needed data (e.g. index) from file.
StringtoString(boolean verbose)

Constructor Detail

BIPUSH

public BIPUSH(byte b)
Push byte on stack

Method Detail

accept

public void accept(Visitor v)
Call corresponding visitor method(s). The order is: Call visitor methods of implemented interfaces first, then call methods according to the class hierarchy in descending order, i.e., the most specific visitXXX() call comes last.

Parameters: v Visitor object

dump

public void dump(DataOutputStream out)
Dump instruction as byte code to stream out.

getType

public Type getType(ConstantPoolGen cp)

Returns: Type.BYTE

getValue

public Number getValue()

initFromFile

protected void initFromFile(ByteSequence bytes, boolean wide)
Read needed data (e.g. index) from file.

toString

public String toString(boolean verbose)

Returns: mnemonic for instruction