インタフェース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
関連項目:
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    作成するオブジェクトの型を返します。
    of(ClassEntry className)
    新しいオブジェクト命令を返します。

    インタフェースjava.lang.classfile.Instructionで宣言されたメソッド

    opcode, sizeInBytes
  • メソッドの詳細

    • className

      ClassEntry className()
      作成するオブジェクトの型を返します。
      戻り値:
      作成するオブジェクトのタイプ
    • of

      static NewObjectInstruction of(ClassEntry className)
      新しいオブジェクト命令を返します。
      パラメータ:
      className - 作成するオブジェクトのタイプ
      戻り値:
      新しいオブジェクト命令