Interface OperatorInstruction
- All Superinterfaces:
ClassFileElement, CodeElement, Instruction
Models an arithmetic operator instruction in the
code array of a
Code attribute. Corresponding opcodes have a kind of
Opcode.Kind.OPERATOR. Delivered as a CodeElement when
traversing the elements of a CodeModel.
An operator instruction is composite:
OperatorInstruction(Opcode opcode)
- Since:
- 24
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic OperatorInstructionReturns an operator instruction.typeKind()Returns the operand type of the instruction.Methods declared in interface Instruction
opcode, sizeInBytesModifier and TypeMethodDescriptionopcode()Returns the operation of this instruction.intReturns the size in bytes of this instruction.
-
Method Details
-
typeKind
-
of
Returns an operator instruction.- Parameters:
op- the opcode for the specific type of operator instruction, which must be of kindOpcode.Kind.OPERATOR- Returns:
- an operator instruction
- Throws:
IllegalArgumentException- if the opcode kind is notOpcode.Kind.OPERATOR.
-