インタフェース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配列のディメンションの数を返します。static NewMultiArrayInstructionof(ClassEntry arrayTypeEntry, int dimensions) 新しい多ディメンション配列命令を返します。インタフェースjava.lang.classfile.Instructionで宣言されたメソッド
opcode, sizeInBytes
-
メソッドの詳細
-
arrayType
-
dimensions
int dimensions()配列のディメンションの数を返します。- 戻り値:
- 配列のディメンションの数
-
of
static NewMultiArrayInstruction of(ClassEntry arrayTypeEntry, int dimensions) 新しい多ディメンション配列命令を返します。- パラメータ:
arrayTypeEntry- 配列の型dimensions- 配列のディメンションの数- 戻り値:
- 新しい多ディメンション配列命令
- スロー:
IllegalArgumentException-dimensionsが範囲外の場合
-