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 TypeClassDescriptionenum
Describes 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 Opcode
Returns 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 CodeBuilder
Generate a branch instructiondefault CodeBuilder
CodeBuilder.fieldAccess
(Opcode opcode, FieldRefEntry ref) Generate an instruction to access a fielddefault CodeBuilder
CodeBuilder.fieldAccess
(Opcode opcode, ClassDesc owner, String name, ClassDesc type) Generate an instruction to access a fielddefault CodeBuilder
CodeBuilder.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 CodeBuilder
CodeBuilder.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 CodeBuilder
CodeBuilder.invoke
(Opcode opcode, MemberRefEntry ref) Generate an instruction to invoke a method or constructordefault CodeBuilder
CodeBuilder.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 ArrayLoadInstruction
Returns an array load instruction.static ArrayStoreInstruction
Returns an array store instruction.static BranchInstruction
Returns a branch instruction.static ConvertInstruction
Returns a conversion instruction.Returns a jump subroutine instruction.Returns a return from subroutine instruction.static FieldInstruction
FieldInstruction.of
(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType) Returns a field access instruction.static FieldInstruction
FieldInstruction.of
(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type) Returns a field access instruction.static FieldInstruction
FieldInstruction.of
(Opcode op, FieldRefEntry field) Returns a field access instruction.static InvokeInstruction
InvokeInstruction.of
(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType, boolean isInterface) Returns an invocation instruction.static InvokeInstruction
InvokeInstruction.of
(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type, boolean isInterface) Returns an invocation instruction.static InvokeInstruction
InvokeInstruction.of
(Opcode op, MemberRefEntry method) Returns an invocation instruction.static LoadInstruction
Returns a local variable load instruction.static MonitorInstruction
Returns a monitor instruction.static OperatorInstruction
Returns an operator instruction.static ReturnInstruction
Returns a return instruction.static StackInstruction
Returns a stack manipulation instruction.static StoreInstruction
Returns a local variable store instruction.static TypeCheckInstruction
TypeCheckInstruction.of
(Opcode op, ClassEntry type) Returns a type check instruction.static TypeCheckInstruction
Returns 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.