- すべてのスーパー・インタフェース:
ClassFileElementPREVIEW
,CodeElementPREVIEW
,InstructionPREVIEW
public sealed interface MonitorInstruction extends InstructionPREVIEW
MonitorInstruction
は、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
Code
属性のcode
配列内のmonitorenter
またはmonitorexit
命令をモデル化します。 CodeModel
PREVIEWの要素をトラバースするときに、CodeElement
PREVIEWとして提供されます。 - 導入されたバージョン:
- 22
-
メソッドのサマリー
インタフェースjava.lang.classfile.InstructionPREVIEWで宣言されたメソッド
opcode, sizeInBytes
-
メソッドの詳細
-
of
static MonitorInstructionPREVIEW of(OpcodePREVIEW op) モニター命令を返します。- パラメータ:
op
- 特定のタイプのモニター命令のopcode。Opcode.Kind.MONITOR
PREVIEW型である必要があります- 戻り値:
- モニター命令
-
MonitorInstruction
を使用できます。