Package org.apache.bcel.generic
Class StackInstruction
java.lang.Object
org.apache.bcel.generic.Instruction
org.apache.bcel.generic.StackInstruction
- All Implemented Interfaces:
Cloneable
Super class for stack operations like DUP and POP.
-
Field Summary
Fields inherited from class org.apache.bcel.generic.Instruction
EMPTY_ARRAY, length, opcode -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)Empty constructor needed for Instruction.readInstruction.protectedStackInstruction(short opcode) Constructs a StackInstruction. -
Method Summary
Methods inherited from class org.apache.bcel.generic.Instruction
accept, consumeStack, copy, dispose, dump, dumpToByteArray, equals, getComparator, getLength, getName, getOpcode, hashCode, initFromFile, isNonNegativeUShort, isValidByte, isValidShort, produceStack, readInstruction, readInstruction, setComparator, setLength, setOpcode, toString, toString, toString
-
Constructor Details
-
StackInstruction
StackInstruction()Empty constructor needed for Instruction.readInstruction. Not to be used otherwise. -
StackInstruction
protected StackInstruction(short opcode) Constructs a StackInstruction.- Parameters:
opcode- instruction opcode.
-
-
Method Details
-
getType
Gets the type.- Parameters:
cp- The constant pool.- Returns:
- Type.UNKNOWN.
-