Uses of Enum Class
java.lang.classfile.Opcode
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing code instructions for the
java.lang.classfilePREVIEW library.-
Uses of OpcodePREVIEW in java.lang.classfilePREVIEW
Subclasses with type arguments of type OpcodePREVIEW in java.lang.classfilePREVIEWModifier and TypeClassDescriptionenumPreview.Describes the opcodes of the JVM instruction set, as described in JVMS 6.5.Methods in java.lang.classfilePREVIEW that return OpcodePREVIEWModifier and TypeMethodDescriptionInstruction.opcode()Returns the opcode of this instruction.Returns the enum constant of this class with the specified name.Opcode.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in java.lang.classfilePREVIEW with parameters of type OpcodePREVIEWModifier and TypeMethodDescriptiondefault CodeBuilderPREVIEWGenerate a branch instructiondefault CodeBuilderPREVIEWCodeBuilder.fieldAccess(OpcodePREVIEW opcode, FieldRefEntryPREVIEW ref) Generate an instruction to access a fielddefault CodeBuilderPREVIEWGenerate an instruction to access a fielddefault CodeBuilderPREVIEWAdd an "if-then" block that is conditional on the value(s) on top of the operand stack in accordance with the given opcode.default CodeBuilderPREVIEWCodeBuilder.ifThenElse(OpcodePREVIEW opcode, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> elseHandler) Add an "if-then-else" block that is conditional on the value(s) on top of the operand stack in accordance with the given opcode.default CodeBuilderPREVIEWCodeBuilder.invoke(OpcodePREVIEW opcode, MemberRefEntryPREVIEW ref) Generate an instruction to invoke a method or constructordefault CodeBuilderPREVIEWCodeBuilder.invoke(OpcodePREVIEW opcode, ClassDesc owner, String name, MethodTypeDesc desc, boolean isInterface) Generate an instruction to invoke a method or constructor -
Uses of OpcodePREVIEW in java.lang.classfile.instructionPREVIEW
Methods in java.lang.classfile.instructionPREVIEW with parameters of type OpcodePREVIEWModifier and TypeMethodDescriptionstatic ArrayLoadInstructionPREVIEWReturns an array load instruction.static ArrayStoreInstructionPREVIEWReturns an array store instruction.static BranchInstructionPREVIEWReturns a branch instruction.static ConvertInstructionPREVIEWReturns a conversion instruction.Returns a JSR instruction.Returns a RET or RET_W instruction.static FieldInstructionPREVIEWFieldInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) Returns a field access instruction.static FieldInstructionPREVIEWFieldInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type) Returns a field access instruction.static FieldInstructionPREVIEWFieldInstruction.of(OpcodePREVIEW op, FieldRefEntryPREVIEW field) Returns a field access instruction.static InvokeInstructionPREVIEWInvokeInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType, boolean isInterface) Returns an invocation instruction.static InvokeInstructionPREVIEWInvokeInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type, boolean isInterface) Returns an invocation instruction.static InvokeInstructionPREVIEWInvokeInstruction.of(OpcodePREVIEW op, MemberRefEntryPREVIEW method) Returns an invocation instruction.static LoadInstructionPREVIEWReturns a local variable load instruction.static MonitorInstructionPREVIEWReturns a monitor instruction.static OperatorInstructionPREVIEWReturns an operator instruction.static ReturnInstructionPREVIEWReturns a return instruction.static StackInstructionPREVIEWReturns a stack manipulation instruction.static StoreInstructionPREVIEWReturns a local variable store instruction.static TypeCheckInstructionPREVIEWTypeCheckInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW type) Returns a type check instruction.static TypeCheckInstructionPREVIEWReturns a type check instruction.ConstantInstruction.ofArgument(OpcodePREVIEW op, int value) Returns an argument constant instruction.ConstantInstruction.ofIntrinsic(OpcodePREVIEW op) Returns an intrinsic constant instruction.ConstantInstruction.ofLoad(OpcodePREVIEW op, LoadableConstantEntryPREVIEW constant) Returns a load constant instruction.