Interface OperatorInstruction
- All Superinterfaces:
ClassFileElement
,CodeElement
,Instruction
Models an arithmetic operator instruction in the
code
array of a
Code
attribute. Corresponding opcodes will have a kind
of
Opcode.Kind.OPERATOR
. Delivered as a CodeElement
when
traversing the elements of a CodeModel
.- Since:
- 24
-
Method Summary
Modifier and TypeMethodDescriptionstatic OperatorInstruction
Returns an operator instruction.typeKind()
Returns the operand type of the instruction.Methods declared in interface java.lang.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
typeKind
TypeKind typeKind()Returns the operand type of the instruction.- Returns:
- the operand type of the instruction
-
of
Returns an operator instruction.- Parameters:
op
- the opcode for the specific type of array load instruction, which must be of kindOpcode.Kind.OPERATOR
- Returns:
- an operator instruction
- Throws:
IllegalArgumentException
- if the opcode kind is notOpcode.Kind.OPERATOR
.
-