Interface OperatorInstruction
- All Superinterfaces:
ClassFileElementPREVIEW,CodeElementPREVIEW,InstructionPREVIEW
OperatorInstruction is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models an arithmetic operator instruction in the
code array of a
Code attribute. Corresponding opcodes will have a kind of
Opcode.Kind.OPERATORPREVIEW. Delivered as a CodeElementPREVIEW when
traversing the elements of a CodeModelPREVIEW.- Since:
- 22
-
Method Summary
Methods declared in interface java.lang.classfile.InstructionPREVIEW
opcode, sizeInBytes
-
Method Details
-
typeKind
-
of
Returns an operator instruction.- Parameters:
op- the opcode for the specific type of array load instruction, which must be of kindOpcode.Kind.OPERATORPREVIEW- Returns:
- an operator instruction
- Throws:
IllegalArgumentException- if the opcode kind is notOpcode.Kind.OPERATORPREVIEW.
-
OperatorInstructionwhen preview features are enabled.