インタフェースNewObjectInstruction
- すべてのスーパー・インタフェース:
ClassFileElement
,CodeElement
,Instruction
public sealed interface NewObjectInstruction extends Instruction
Code
属性のcode
配列のnew
命令をモデル化します。 CodeModel
の要素をトラバースするときに、CodeElement
として提供されます。
新しいオブジェクト命令はcompositeです:
NewObjectInstruction
(ClassEntry className
)
className
は非抽象クラスです。- Java Virtual Machine仕様を参照してください:
-
6.5.new new
- 導入されたバージョン:
- 24
- 関連項目:
-
メソッドのサマリー
修飾子と型メソッド説明作成するオブジェクトの型を返します。static NewObjectInstruction
of
(ClassEntry className) 新しいオブジェクト命令を返します。インタフェースjava.lang.classfile.Instructionで宣言されたメソッド
opcode, sizeInBytes
-
メソッドの詳細
-
className
-
of
static NewObjectInstruction of(ClassEntry className) 新しいオブジェクト命令を返します。- パラメータ:
className
- 作成するオブジェクトのタイプ- 戻り値:
- 新しいオブジェクト命令
-