- All Superinterfaces:
ClassFileElement,CodeElement,Instruction
- All Known Implementing Classes:
AbstractInstruction.UnboundMonitorInstruction
public sealed interface MonitorInstruction
extends Instruction
permits AbstractInstruction.UnboundMonitorInstruction
Models a
monitorenter or monitorexit instruction in the
code array of a Code attribute. Delivered as a CodeElement when traversing the elements of a CodeModel.- Since:
- 22
-
Method Summary
Static MethodsMethods inherited from interface org.glavo.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
of
Returns a monitor instruction.- Parameters:
op- the opcode for the specific type of monitor instruction, which must be of kindOpcode.Kind.MONITOR- Returns:
- a monitor instruction
-