org.apache.bcel.generic

Class SIPUSH

public class SIPUSH extends Instruction implements ConstantPushInstruction

SIPUSH - Push short
Stack: ... -> ..., value
Constructor Summary
SIPUSH(short b)
Method Summary
voidaccept(Visitor v)
Call corresponding visitor method(s).
voiddump(DataOutputStream out)
Dump instruction as short 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

SIPUSH

public SIPUSH(short b)

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 short code to stream out.

getType

public Type getType(ConstantPoolGen cp)

Returns: Type.SHORT

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