APIdia Launch Partner
Top Description Methods
java.lang.classfile.instruction

public sealed Interface ThrowInstruction

extends Instruction
permits UnboundThrowInstruction
Known Direct Implementers
jdk.internal.classfile.impl.AbstractInstruction.UnboundThrowInstruction
Imports
java.lang.classfile.CodeBuilder, .CodeElement, .CodeModel, .Instruction, .Opcode, jdk.internal.classfile.impl.AbstractInstruction

Models an athrow instruction in the code array of a Code attribute. Delivered as a CodeElement when traversing the elements of a CodeModel.

A throw instruction has no visible state.

Since
24
See Also
Opcode.Kind#THROW_EXCEPTION, CodeBuiler::athrow

Method Summary

Modifier and TypeMethod and Description
public static ThrowInstruction

Returns:

a throw instruction
of
()

Returns a throw instruction.

Inherited from java.lang.classfile.Instruction:
opcodesizeInBytes

Method Detail

ofback to summary
public static ThrowInstruction of()

Returns a throw instruction.

Returns:ThrowInstruction

a throw instruction