| Access | Constructor and Description |
|---|---|
| public | PlainInsn(Rop
non-null; the opcodenon-null; source positionnull-ok; spec for the result, if anynon-null; specs for all the sourcesConstructs an instance. |
| public | PlainInsn(Rop
non-null; the opcodenon-null; source positionnull-ok; spec for the result, if anynon-null; spec for the sourceConstructs a single-source 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 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. |
| public Insn | withSourceLiteral()
Overrides org. |
| PlainInsn | back to summary |
|---|---|
| public PlainInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources) Constructs an instance.
| |
| PlainInsn | back to summary |
|---|---|
| public PlainInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpec source) Constructs a single-source 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 | |
| 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. | |
| withSourceLiteral | back to summary |
|---|---|
| public Insn withSourceLiteral() Overrides org. Doc from org. Returns an instance that is just like this one, except that, if
possible, the insn is converted into a version in which a source
(if it is a constant) is represented directly rather than as a
register reference. | |