Uses of Enum Class
java.lang.classfile.Opcode
Packages that use Opcode
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing code instructions for the
java.lang.classfile library.-
Uses of Opcode in java.lang.classfile
Subclasses with type arguments of type Opcode in java.lang.classfileModifier and TypeClassDescriptionenumDescribes the opcodes of the JVM instruction set, as described in JVMS 6.5.Methods in java.lang.classfile that return OpcodeModifier and TypeMethodDescriptionInstruction.opcode()Returns the operation of this instruction.static OpcodeReturns the enum constant of this class with the specified name.static Opcode[]Opcode.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in java.lang.classfile with parameters of type OpcodeModifier and TypeMethodDescriptiondefault CodeBuilderGenerate a branch instructiondefault CodeBuilderCodeBuilder.fieldAccess(Opcode opcode, FieldRefEntry ref) Generate an instruction to access a fielddefault CodeBuilderCodeBuilder.fieldAccess(Opcode opcode, ClassDesc owner, String name, ClassDesc type) Generate an instruction to access a fielddefault CodeBuilderCodeBuilder.ifThen(Opcode opcode, Consumer<CodeBuilder.BlockCodeBuilder> thenHandler) 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 CodeBuilderCodeBuilder.ifThenElse(Opcode opcode, Consumer<CodeBuilder.BlockCodeBuilder> thenHandler, Consumer<CodeBuilder.BlockCodeBuilder> 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 CodeBuilderCodeBuilder.invoke(Opcode opcode, MemberRefEntry ref) Generate an instruction to invoke a method or constructordefault CodeBuilderCodeBuilder.invoke(Opcode opcode, ClassDesc owner, String name, MethodTypeDesc desc, boolean isInterface) Generate an instruction to invoke a method or constructor -
Uses of Opcode in java.lang.classfile.instruction
Methods in java.lang.classfile.instruction with parameters of type OpcodeModifier and TypeMethodDescriptionstatic ArrayLoadInstructionReturns an array load instruction.static ArrayStoreInstructionReturns an array store instruction.static BranchInstructionReturns a branch instruction.static ConvertInstructionReturns a conversion instruction.Returns a jump subroutine instruction.Returns a return from subroutine instruction.static FieldInstructionFieldInstruction.of(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType) Returns a field access instruction.static FieldInstructionFieldInstruction.of(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type) Returns a field access instruction.static FieldInstructionFieldInstruction.of(Opcode op, FieldRefEntry field) Returns a field access instruction.static InvokeInstructionInvokeInstruction.of(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType, boolean isInterface) Returns an invocation instruction.static InvokeInstructionInvokeInstruction.of(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type, boolean isInterface) Returns an invocation instruction.static InvokeInstructionInvokeInstruction.of(Opcode op, MemberRefEntry method) Returns an invocation instruction.static LoadInstructionReturns a local variable load instruction.static MonitorInstructionReturns a monitor instruction.static OperatorInstructionReturns an operator instruction.static ReturnInstructionReturns a return instruction.static StackInstructionReturns a stack manipulation instruction.static StoreInstructionReturns a local variable store instruction.static TypeCheckInstructionTypeCheckInstruction.of(Opcode op, ClassEntry type) Returns a type check instruction.static TypeCheckInstructionReturns a type check instruction.ConstantInstruction.ofArgument(Opcode op, int value) Returns an argument constant instruction.ConstantInstruction.ofIntrinsic(Opcode op) Returns an intrinsic constant instruction.ConstantInstruction.ofLoad(Opcode op, LoadableConstantEntry constant) Returns a load constant instruction.