Top Description Methods
java.lang.classfile

public sealed Interface Instruction

extends CodeElement
Known Direct Subinterfaces
java.lang.classfile.instruction.ArrayLoadInstruction, java.lang.classfile.instruction.ArrayStoreInstruction, java.lang.classfile.instruction.BranchInstruction, java.lang.classfile.instruction.ConstantInstruction, java.lang.classfile.instruction.ConvertInstruction, java.lang.classfile.instruction.DiscontinuedInstruction, java.lang.classfile.instruction.FieldInstruction, java.lang.classfile.instruction.IncrementInstruction, java.lang.classfile.instruction.InvokeDynamicInstruction, java.lang.classfile.instruction.InvokeInstruction, java.lang.classfile.instruction.LoadInstruction, java.lang.classfile.instruction.LookupSwitchInstruction, java.lang.classfile.instruction.MonitorInstruction, java.lang.classfile.instruction.NewMultiArrayInstruction, java.lang.classfile.instruction.NewObjectInstruction, java.lang.classfile.instruction.NewPrimitiveArrayInstruction, java.lang.classfile.instruction.NewReferenceArrayInstruction, java.lang.classfile.instruction.NopInstruction, java.lang.classfile.instruction.OperatorInstruction, java.lang.classfile.instruction.ReturnInstruction, java.lang.classfile.instruction.StackInstruction, java.lang.classfile.instruction.StoreInstruction, java.lang.classfile.instruction.TableSwitchInstruction, java.lang.classfile.instruction.ThrowInstruction, java.lang.classfile.instruction.TypeCheckInstruction
Known Direct Implementers
jdk.internal.classfile.impl.AbstractInstruction
Annotations
@PreviewFeature
feature:CLASSFILE_API
Imports
jdk.internal.classfile.impl.AbstractInstruction, java.lang.classfile.instruction.ArrayLoadInstruction, .ArrayStoreInstruction, .BranchInstruction, .ConstantInstruction, .ConvertInstruction, .DiscontinuedInstruction, .FieldInstruction, .IncrementInstruction, .InvokeDynamicInstruction, .InvokeInstruction, .LoadInstruction, .LookupSwitchInstruction, .MonitorInstruction, .NewMultiArrayInstruction, .NewObjectInstruction, .NewPrimitiveArrayInstruction, .NewReferenceArrayInstruction, .NopInstruction, .OperatorInstruction, .ReturnInstruction, .StackInstruction, .StoreInstruction, .TableSwitchInstruction, .ThrowInstruction, .TypeCheckInstruction, jdk.internal.javac.PreviewFeature

Preview

Second Preview of ClassFile API (JEP 466).

Programs can only use Instruction when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.

Models an executable instruction in a method body.
Since
22

Method Summary

Modifier and TypeMethod and Description
public Opcode

Returns:

the opcode of this instruction
opcode
()

Returns the opcode of this instruction.

public int

Returns:

the size in bytes of this instruction
sizeInBytes
()

Returns the size in bytes of this instruction.

Method Detail

opcodeback to summary
public Opcode opcode()

Returns the opcode of this instruction.

Returns:Opcode

the opcode of this instruction

sizeInBytesback to summary
public int sizeInBytes()

Returns the size in bytes of this instruction.

Returns:int

the size in bytes of this instruction