- All Superinterfaces:
ClassFileElement,CodeElement,Instruction
- All Known Implementing Classes:
AbstractInstruction.UnboundOperatorInstruction
public sealed interface OperatorInstruction
extends Instruction
permits AbstractInstruction.UnboundOperatorInstruction
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:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionstatic OperatorInstructionReturns an operator instruction.typeKind()Returns the operand type of the instruction.Methods inherited from interface org.glavo.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
-