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.classfile
PREVIEW library.-
Uses of OpcodePREVIEW in java.lang.classfilePREVIEW
Modifier and TypeClassDescriptionenum
Preview.Describes the opcodes of the JVM instruction set, as described in 6.5.Modifier 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.Modifier and TypeMethodDescriptiondefault CodeBuilderPREVIEW
Generate a branch instructiondefault CodeBuilderPREVIEW
CodeBuilder.fieldAccess
(OpcodePREVIEW opcode, FieldRefEntryPREVIEW ref) Generate an instruction to access a fielddefault CodeBuilderPREVIEW
Generate an instruction to access a fielddefault CodeBuilderPREVIEW
Add an "if-then" block that is conditional on the value(s) on top of the operand stack in accordance with the given opcode.default CodeBuilderPREVIEW
CodeBuilder.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 CodeBuilderPREVIEW
CodeBuilder.invoke
(OpcodePREVIEW opcode, MemberRefEntryPREVIEW ref) Generate an instruction to invoke a method or constructordefault CodeBuilderPREVIEW
CodeBuilder.invoke
(OpcodePREVIEW opcode, ClassDesc owner, String name, MethodTypeDesc desc, boolean isInterface) Generate an instruction to invoke a method or constructordefault CodeBuilderPREVIEW
CodeBuilder.loadConstant
(OpcodePREVIEW opcode, ConstantDesc value) Generate an instruction pushing a constant onto the operand stack -
Uses of OpcodePREVIEW in java.lang.classfile.instructionPREVIEW
Modifier and TypeMethodDescriptionstatic ArrayLoadInstructionPREVIEW
Returns an array load instruction.static ArrayStoreInstructionPREVIEW
Returns an array store instruction.static BranchInstructionPREVIEW
Returns a branch instruction.static ConvertInstructionPREVIEW
Returns a conversion instruction.Returns a JSR instruction.Returns a RET or RET_W instruction.static FieldInstructionPREVIEW
FieldInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) Returns a field access instruction.static FieldInstructionPREVIEW
FieldInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type) Returns a field access instruction.static FieldInstructionPREVIEW
FieldInstruction.of
(OpcodePREVIEW op, FieldRefEntryPREVIEW field) Returns a field access instruction.static InvokeInstructionPREVIEW
InvokeInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType, boolean isInterface) Returns an invocation instruction.static InvokeInstructionPREVIEW
InvokeInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type, boolean isInterface) Returns an invocation instruction.static InvokeInstructionPREVIEW
InvokeInstruction.of
(OpcodePREVIEW op, MemberRefEntryPREVIEW method) Returns an invocation instruction.static LoadInstructionPREVIEW
Returns a local variable load instruction.static MonitorInstructionPREVIEW
Returns a monitor instruction.static OperatorInstructionPREVIEW
Returns an operator instruction.static ReturnInstructionPREVIEW
Returns a return instruction.static StackInstructionPREVIEW
Returns a stack manipulation instruction.static StoreInstructionPREVIEW
Returns a local variable store instruction.static TypeCheckInstructionPREVIEW
TypeCheckInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW type) Returns a type check instruction.static TypeCheckInstructionPREVIEW
Returns 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.