インタフェースNewMultiArrayInstruction

すべてのスーパー・インタフェース:
ClassFileElement, CodeElement, Instruction

public sealed interface NewMultiArrayInstruction extends Instruction
Code属性のcode配列のmultianewarray命令をモデル化します。 CodeModelの要素をトラバースするときに、CodeElementとして提供されます。

新しい多ディメンション配列命令はcompositeです:

NewMultiArrayInstruction(
    ClassEntry arrayType,
    int dimensions
)
ここで、arrayTypeは配列クラスです。

Java Virtual Machine仕様を参照してください:
6.5.multianewarray multianewarray
導入されたバージョン:
24
関連項目:
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    配列のタイプを返します。
    int
    配列のディメンションの数を返します。
    of(ClassEntry arrayTypeEntry, int dimensions)
    新しい多ディメンション配列命令を返します。

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

    opcode, sizeInBytes
  • メソッドの詳細

    • arrayType

      ClassEntry arrayType()
      配列のタイプを返します。
      戻り値:
      配列の型
    • dimensions

      int dimensions()
      配列のディメンションの数を返します。
      戻り値:
      配列のディメンションの数
    • of

      static NewMultiArrayInstruction of(ClassEntry arrayTypeEntry, int dimensions)
      新しい多ディメンション配列命令を返します。
      パラメータ:
      arrayTypeEntry - 配列の型
      dimensions - 配列のディメンションの数
      戻り値:
      新しい多ディメンション配列命令
      スロー:
      IllegalArgumentException - dimensionsが範囲外の場合