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.OPERATOR
PREVIEW. Delivered as a CodeElement
PREVIEW when
traversing the elements of a CodeModel
PREVIEW.- 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.OPERATOR
PREVIEW- Returns:
- an operator instruction
- Throws:
IllegalArgumentException
- if the opcode kind is notOpcode.Kind.OPERATOR
PREVIEW.
-
OperatorInstruction
when preview features are enabled.