successors list in the
basic block an instance of this class is inside corresponds in-order to
the list of exceptions handled by this instruction, with the
no-exception case appended as the final target.
| Modifier and Type | Field and Description |
|---|---|
| private final TypeList | catches
|
| Access | Constructor and Description |
|---|---|
| public | ThrowingInsn(Rop
non-null; the opcodenon-null; source positionnon-null; specs for all the sourcesnon-null; list of exceptions caughtConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Insn.
non-null; the visitor to call onImplements abstract org. |
| public TypeList | getCatches()
Implements abstract org. |
| public String | getInlineString()
Overrides org. |
| public static String | Returns: non-null; the string formnon-null; the catches listGets the string form of a register spec list to be used as a catches list. |
| public Insn | withAddedCatch(Type
non-null; type to append to the catch listImplements abstract org. |
| public Insn | withNewRegisters(RegisterSpec
null-ok; new result registernon-null; new sources registersImplements abstract org. |
| public Insn | withRegisterOffset(int
the amount to offset register references by delta)Implements abstract org. |
| catches | back to summary |
|---|---|
| private final TypeList catches
| |
| ThrowingInsn | back to summary |
|---|---|
| public ThrowingInsn(Rop opcode, SourcePosition position, RegisterSpecList sources, TypeList catches) Constructs an instance.
| |
| accept | back to summary |
|---|---|
| public void accept(Insn. Implements abstract org. Doc from org. Calls the appropriate method on the given visitor, depending on the class of this instance. Subclasses must override this. | |
| getCatches | back to summary |
|---|---|
| public TypeList getCatches() Implements abstract org. Doc from org. Gets the list of possibly-caught exceptions. This returns | |
| getInlineString | back to summary |
|---|---|
| public String getInlineString() Overrides org. Doc from org. Gets an "inline" string portion for toHuman(), if available. This is the portion that appears after the Rop opcode | |
| toCatchString | back to summary |
|---|---|
| public static String toCatchString(TypeList catches) Gets the string form of a register spec list to be used as a catches list. | |
| withAddedCatch | back to summary |
|---|---|
| public Insn withAddedCatch(Type type) Implements abstract org. Doc from org. Returns an instance that is just like this one, except that it
has a catch list with the given item appended to the end. This
method throws an exception if this instance can't possibly
throw. To determine whether this instruction can throw, use
| |
| withNewRegisters | back to summary |
|---|---|
| public Insn withNewRegisters(RegisterSpec result, RegisterSpecList sources) Implements abstract org. Doc from org. Returns an instance that is just like this one, except with new result and source registers.
| |
| withRegisterOffset | back to summary |
|---|---|
| public Insn withRegisterOffset(int delta) Implements abstract org. Doc from org. Returns an instance that is just like this one, except that all register references have been offset by the given delta. | |