| Modifier and Type | Field and Description |
|---|---|
| private final IntList | cases
|
| Access | Constructor and Description |
|---|---|
| public | SwitchInsn(Rop
non-null; the opcodenon-null; source positionnull-ok; spec for the result, if anynon-null; specs for all the sourcesnon-null; list of switch casesConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Insn.
non-null; the visitor to call onImplements abstract org. |
| public boolean | contentEquals(Insn b)
Overrides org. Insn.equals() is defined
to be an identity compare.
|
| public IntList | |
| public TypeList | getCatches()
Implements abstract org. |
| public String | getInlineString()
Overrides org. |
| 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. |
| cases | back to summary |
|---|---|
| private final IntList cases
| |
| SwitchInsn | back to summary |
|---|---|
| public SwitchInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources, IntList cases) 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. | |
| contentEquals | back to summary |
|---|---|
| public boolean contentEquals(Insn b) Overrides org. Doc from org. Compares Insn contents, since SwitchInsn always compares false. The current use for this method
never encounters
| |
| getCases | back to summary |
|---|---|
| public IntList getCases() Gets the list of switch cases.
| |
| 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 | |
| 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. | |