Top Description Fields Constructors Methods
org.apache.bcel.generic

public abstract Class StackInstruction

extends Instruction
Class Inheritance
Known Direct Subclasses
org.apache.bcel.generic.SWAP, org.apache.bcel.generic.DUP2, org.apache.bcel.generic.DUP2_X1, org.apache.bcel.generic.DUP2_X2, org.apache.bcel.generic.DUP_X1, org.apache.bcel.generic.DUP_X2, org.apache.bcel.generic.DUP, org.apache.bcel.generic.POP, org.apache.bcel.generic.POP2

Super class for stack operations like DUP and POP.

Field Summary

Inherited from org.apache.bcel.generic.Instruction:
EMPTY_ARRAYlengthopcode

Constructor Summary

AccessConstructor and Description
pack-priv
StackInstruction()

Empty constructor needed for Instruction.readInstruction.

protected
StackInstruction(final short
instruction opcode
opcode
)

Method Summary

Modifier and TypeMethod and Description
public Type

Returns:

Type.UNKNOWN
getType
(final ConstantPoolGen cp)

Inherited from org.apache.bcel.generic.Instruction:
acceptconsumeStackcopydisposedumpequalsgetComparatorgetLengthgetNamegetOpcodehashCodeinitFromFileisValidByteisValidShortproduceStackreadInstructionsetComparatorsetLengthsetOpcodetoStringtoStringtoString

Constructor Detail

StackInstructionback to summary
pack-priv StackInstruction()

Empty constructor needed for Instruction.readInstruction. Not to be used otherwise.

StackInstructionback to summary
protected StackInstruction(final short opcode)
Parameters
opcode:short

instruction opcode

Method Detail

getTypeback to summary
public Type getType(final ConstantPoolGen cp)
Returns:Type

Type.UNKNOWN