Top Description Interfaces
module java.base

Package java.lang.classfile.instruction

Annotations
@PreviewFeature
feature:CLASSFILE_API
Imports
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.

Provides interfaces describing code instructions for the java.lang.classfile library.

The java.lang.classfile.attribute package contains interfaces describing code instructions.
Since
22

Interface Summary

Modifier and TypeInterface and Description
public interface
ArrayLoadInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models an array load instruction in the code array of a Code attribute.
public interface
ArrayStoreInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models an array store instruction in the code array of a Code attribute.
public interface
BranchInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a branching instruction (conditional or unconditional) in the code array of a Code attribute.
public interface
CharacterRange

Preview Second Preview of ClassFile API (JEP 466).

A pseudo-instruction which models a single entry in the CharacterRangeTableAttribute.
public interface
ConstantInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a constant-load instruction in the code array of a Code attribute, including "intrinsic constant" instructions (e.g., iconst_0), "argument constant" instructions (e.g., bipush), and "load constant" instructions (e.g., LDC).
public interface
ConvertInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a primitive conversion instruction in the code array of a Code attribute, such as i2l.
public interface
DiscontinuedInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models instruction discontinued from the code array of a Code attribute.
public interface
ExceptionCatch

Preview Second Preview of ClassFile API (JEP 466).

A pseudo-instruction modeling an entry in the exception table of a code attribute.
public interface
FieldInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a field access instruction in the code array of a Code attribute.
public interface
IncrementInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a local variable increment instruction in the code array of a Code attribute.
public interface
InvokeDynamicInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models an invokedynamic instruction in the code array of a Code attribute.
public interface
InvokeInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a method invocation instruction in the code array of a Code attribute, other than invokedynamic.
public interface
LabelTarget

Preview Second Preview of ClassFile API (JEP 466).

A pseudo-instruction which indicates that the specified label corresponds to the current position in the Code attribute.
public interface
LineNumber

Preview Second Preview of ClassFile API (JEP 466).

A pseudo-instruction which models a single entry in the LineNumberTableAttribute.
public interface
LoadInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a local variable load instruction in the code array of a Code attribute.
public interface
LocalVariable

Preview Second Preview of ClassFile API (JEP 466).

A pseudo-instruction which models a single entry in the LocalVariableTableAttribute.
public interface
LocalVariableType

Preview Second Preview of ClassFile API (JEP 466).

A pseudo-instruction which models a single entry in the LocalVariableTypeTableAttribute.
public interface
LookupSwitchInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a lookupswitch instruction in the code array of a Code attribute.
public interface
MonitorInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a monitorenter or monitorexit instruction in the code array of a Code attribute.
public interface
NewMultiArrayInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a multianewarray invocation instruction in the code array of a Code attribute.
public interface
NewObjectInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a new instruction in the code array of a Code attribute.
public interface
NewPrimitiveArrayInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a newarray invocation instruction in the code array of a Code attribute.
public interface
NewReferenceArrayInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a anewarray invocation instruction in the code array of a Code attribute.
public interface
NopInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a nop invocation instruction in the code array of a Code attribute.
public interface
OperatorInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models an arithmetic operator instruction in the code array of a Code attribute.
public interface
ReturnInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a return-from-method instruction in the code array of a Code attribute.
public interface
StackInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a stack manipulation instruction in the code array of a Code attribute.
public interface
StoreInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a local variable store instruction in the code array of a Code attribute.
public interface
SwitchCase

Preview Second Preview of ClassFile API (JEP 466).

Models a single case in a lookupswitch or tableswitch instruction.
public interface
TableSwitchInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models a tableswitch instruction in the code array of a Code attribute.
public interface
ThrowInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models an athrow instruction in the code array of a Code attribute.
public interface
TypeCheckInstruction

Preview Second Preview of ClassFile API (JEP 466).

Models an instanceof or checkcast instruction in the code array of a Code attribute.