Interface StackInstruction
- All Superinterfaces:
ClassFileElement,CodeElement,Instruction
Models a stack manipulation instruction in the
code array of a
Code attribute. Corresponding opcodes have a kind of
Opcode.Kind.STACK. Delivered as a CodeElement when
traversing the elements of a CodeModel.
A stack manipulation instruction is composite:
StackInstruction(Opcode opcode)
- Since:
- 24
- See Also:
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic StackInstructionReturns a stack manipulation instruction.Methods declared in interface java.lang.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
of
Returns a stack manipulation instruction.- Parameters:
op- the opcode for the specific type of stack instruction, which must be of kindOpcode.Kind.STACK- Returns:
- a stack manipulation instruction
- Throws:
IllegalArgumentException- if the opcode kind is notOpcode.Kind.STACK.
-