インタフェース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でない場合。
-