Top Description Fields Constructors Methods
com.sun.org.apache.bcel.internal.generic

public abstract Class StackInstruction

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

Super class for stack operations like DUP and POP.

Field Summary

Inherited from com.sun.org.apache.bcel.internal.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 com.sun.org.apache.bcel.internal.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