列挙型クラスjava.lang.classfile.Opcodeの
使用
-
java.lang.classfilePREVIEWでのOpcodePREVIEWの使用
修飾子と型メソッド説明Instruction.opcode()
この命令のopcodeを返します。指定された名前を持つこのクラスのenum定数を返します。Opcode.values()
この列挙クラスの定数を含む配列を宣言されている順序で 返します。修飾子と型メソッド説明default CodeBuilderPREVIEW
CodeBuilder.branchInstruction
(OpcodePREVIEW op, LabelPREVIEW target) 分岐命令の生成default CodeBuilderPREVIEW
CodeBuilder.constantInstruction
(OpcodePREVIEW opcode, ConstantDesc value) 定数をオペランド・スタックにプッシュする命令を生成しますdefault CodeBuilderPREVIEW
CodeBuilder.fieldInstruction
(OpcodePREVIEW opcode, FieldRefEntryPREVIEW ref) フィールドにアクセスするための指示の生成default CodeBuilderPREVIEW
フィールドにアクセスするための指示の生成default CodeBuilderPREVIEW
指定されたopcodeに従って、オペランド・スタックの上部にある値に条件付き"if-then"ブロックを追加します。default CodeBuilderPREVIEW
CodeBuilder.ifThenElse
(OpcodePREVIEW opcode, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> elseHandler) 指定されたopcodeに従って、オペランド・スタックの上部にある値に条件付き"if-then-else"ブロックを追加します。default CodeBuilderPREVIEW
CodeBuilder.invokeInstruction
(OpcodePREVIEW opcode, MemberRefEntryPREVIEW ref) メソッドまたはコンストラクタを呼び出す命令の生成default CodeBuilderPREVIEW
CodeBuilder.invokeInstruction
(OpcodePREVIEW opcode, ClassDesc owner, String name, MethodTypeDesc desc, boolean isInterface) メソッドまたはコンストラクタを呼び出す命令の生成default CodeBuilderPREVIEW
CodeBuilder.monitorInstruction
(OpcodePREVIEW opcode) モニター命令の生成default CodeBuilderPREVIEW
CodeBuilder.operatorInstruction
(OpcodePREVIEW opcode) オペレータ命令の生成default CodeBuilderPREVIEW
CodeBuilder.stackInstruction
(OpcodePREVIEW opcode) スタック操作命令の生成default CodeBuilderPREVIEW
CodeBuilder.typeCheckInstruction
(OpcodePREVIEW opcode, ClassEntryPREVIEW type) 型チェック命令の生成default CodeBuilderPREVIEW
CodeBuilder.typeCheckInstruction
(OpcodePREVIEW opcode, ClassDesc type) 型チェック命令の生成 -
java.lang.classfile.instructionPREVIEWでのOpcodePREVIEWの使用
修飾子と型メソッド説明static ArrayLoadInstructionPREVIEW
配列のロード命令を返します。static ArrayStoreInstructionPREVIEW
配列ストア命令を返します。static BranchInstructionPREVIEW
分岐命令を返します。static ConvertInstructionPREVIEW
変換命令を返します。JSR命令を返します。RETまたはRET_W命令を返します。static FieldInstructionPREVIEW
FieldInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) フィールド・アクセス指示を返します。static FieldInstructionPREVIEW
FieldInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type) フィールド・アクセス指示を返します。static FieldInstructionPREVIEW
FieldInstruction.of
(OpcodePREVIEW op, FieldRefEntryPREVIEW field) フィールド・アクセス指示を返します。static InvokeInstructionPREVIEW
InvokeInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType, boolean isInterface) invocation instructionを返します。static InvokeInstructionPREVIEW
InvokeInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type, boolean isInterface) invocation instructionを返します。static InvokeInstructionPREVIEW
InvokeInstruction.of
(OpcodePREVIEW op, MemberRefEntryPREVIEW method) invocation instructionを返します。static LoadInstructionPREVIEW
ローカル変数ロード命令を返します。static MonitorInstructionPREVIEW
モニター命令を返します。static OperatorInstructionPREVIEW
オペレータ命令を返します。static ReturnInstructionPREVIEW
戻り命令を返します。static StackInstructionPREVIEW
スタック操作命令を返します。static StoreInstructionPREVIEW
ローカル変数ストア命令を返します。static TypeCheckInstructionPREVIEW
TypeCheckInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW type) 型チェック命令を返します。static TypeCheckInstructionPREVIEW
型チェック命令を返します。ConstantInstruction.ofArgument
(OpcodePREVIEW op, int value) 引数定数命令を返します。ConstantInstruction.ofIntrinsic
(OpcodePREVIEW op) 組み込み定数命令を返します。ConstantInstruction.ofLoad
(OpcodePREVIEW op, LoadableConstantEntryPREVIEW constant) ロード定数命令を返します。