インタフェースMonitorInstruction
- すべてのスーパー・インタフェース:
ClassFileElement
,CodeElement
,Instruction
public sealed interface MonitorInstruction extends Instruction
Code
属性のcode
配列のmonitorenter
またはmonitorexit
命令をモデル化します。 対応するopcodesのkindはOpcode.Kind.MONITOR
です。 CodeModel
の要素をトラバースするときに、CodeElement
として提供されます。
モニター命令はコンポジットです:
MonitorInstruction
(Opcode opcode
)
- 導入されたバージョン:
- 24
-
メソッドのサマリー
静的メソッドインタフェースjava.lang.classfile.Instructionで宣言されたメソッド
opcode, sizeInBytes
-
メソッドの詳細
-
of
static MonitorInstruction of(Opcode op) モニター命令を返します。- パラメータ:
op
- 特定のタイプのモニター命令のopcode。Opcode.Kind.MONITOR
の種類である必要があります- 戻り値:
- モニター命令
- スロー:
IllegalArgumentException
- opcodeの種類がOpcode.Kind.MONITOR
でない場合。
-