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 Instruction
length, opcode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStackInstruction(short opcode) Constructs a StackInstruction. -
Method Summary
Methods inherited from class Instruction
accept, consumeStack, copy, dump, equals, getComparator, getLength, getName, getOpcode, hashCode, initFromFile, isValidByte, isValidShort, produceStack, readInstruction, setComparator, toString, toString, toString
-
Constructor Details
-
StackInstruction
Constructs a StackInstruction.- Parameters:
opcode- instruction opcode.
-
-
Method Details
-
getType
Gets the type.- Parameters:
cp- the constant pool.- Returns:
- Type.UNKNOWN.
-