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