org.apache.bcel.generic

Class SIPUSH

public class SIPUSH extends Instruction implements ConstantPushInstruction

SIPUSH - Push short
Stack: ... -> ..., value

Version: $Id: SIPUSH.java 386056 2006-03-15 11:31:56Z tcurdt $

Author: M. Dahm

Field Summary
shortb
Constructor Summary
SIPUSH()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction().
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)

Field Detail

b

private short b

Constructor Detail

SIPUSH

SIPUSH()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.

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