| Modifier and Type | Class and Description |
|---|---|
| public static class | Insn.
Base implementation of |
| public static interface | Insn.
Visitor interface for this (outer) class. |
| Modifier and Type | Field and Description |
|---|---|
| private final Rop | opcode
|
| private final SourcePosition | position
|
| private final RegisterSpec | result
|
| private final RegisterSpecList | sources
|
| Access | Constructor and Description |
|---|---|
| public | Insn(Rop
non-null; the opcodenon-null; source positionnull-ok; spec for the result, if anynon-null; specs for all the sourcesConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public final boolean | Returns: true iff this instruction can possibly throwGets whether this instruction can possibly throw an exception. |
| public boolean | Returns: true in the case described aboveCompares Insn contents, since |
| public Insn | |
| public final boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| private static boolean | Returns: true if they're equal or both null.first object a, Object second object b)Compares, handling nulls safely |
| public abstract TypeList | |
| public String | Returns: null-ok; if non-null, the inline text for toHuman()Gets an "inline" string portion for toHuman(), if available. |
| public final RegisterSpec | Returns: null-ok; a named register spec or nullGets the spec of a local variable assignment that occurs at this instruction, or null if no local variable assignment occurs. |
| public final Rop | |
| public final SourcePosition | |
| public final RegisterSpec | |
| public final RegisterSpecList | |
| public final int | |
| public String | Returns: non-null; the human string formImplements org. |
| protected final String | Returns: non-null; the human string formnull-ok; the inline argument stringReturns the human string form of this instance, with the given bit added in the standard location for an inline argument. |
| public String | |
| protected final String | Returns: non-null; the string formnull-ok; the inline argument stringReturns the string form of this instance, with the given bit added in the standard location for an inline argument. |
| public abstract Insn | Returns: non-null; an appropriately-constructed instancenon-null; type to append to the catch listReturns an instance that is just like this one, except that it has a catch list with the given item appended to the end. |
| public abstract Insn | Returns: non-null; an appropriately-constructed instancenull-ok; new result registernon-null; new sources registersReturns an instance that is just like this one, except with new result and source registers. |
| public abstract Insn | Returns: non-null; an appropriately-constructed instancethe amount to offset register references by delta)Returns an instance that is just like this one, except that all register references have been offset by the given delta. |
| public Insn | Returns: non-null; an appropriately-constructed instanceReturns 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. |
| opcode | back to summary |
|---|---|
| private final Rop opcode
| |
| position | back to summary |
|---|---|
| private final SourcePosition position
| |
| result | back to summary |
|---|---|
| private final RegisterSpec result
| |
| sources | back to summary |
|---|---|
| private final RegisterSpecList sources
| |
| Insn | back to summary |
|---|---|
| public Insn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources) Constructs an instance.
| |
| accept | back to summary |
|---|---|
| public abstract void accept(Insn. Calls the appropriate method on the given visitor, depending on the class of this instance. Subclasses must override this. | |
| canThrow | back to summary |
|---|---|
| public final boolean canThrow() Gets whether this instruction can possibly throw an exception. This
is just a convenient wrapper for
| |
| contentEquals | back to summary |
|---|---|
| public boolean contentEquals(Insn b) Compares Insn contents, since
| |
| copy | back to summary |
|---|---|
| public Insn copy() Returns an exact copy of this Insn
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on
into equivalence classes; all the members of an
equivalence class are equal to each other. Members of an
equivalence class are substitutable for each other, at least
for some purposes.
Instances of this class compare by identity. That is,
| |
| equalsHandleNulls | back to summary |
|---|---|
| private static boolean equalsHandleNulls(Object a, Object b) Compares, handling nulls safely | |
| getCatches | back to summary |
|---|---|
| public abstract TypeList getCatches() Gets the list of possibly-caught exceptions. This returns
| |
| getInlineString | back to summary |
|---|---|
| public String getInlineString() Gets an "inline" string portion for toHuman(), if available. This is the portion that appears after the Rop opcode
| |
| getLocalAssignment | back to summary |
|---|---|
| public final RegisterSpec getLocalAssignment() Gets the spec of a local variable assignment that occurs at this
instruction, or null if no local variable assignment occurs. This
may be the result register, or for
| |
| getOpcode | back to summary |
|---|---|
| public final Rop getOpcode() Gets the opcode.
| |
| getPosition | back to summary |
|---|---|
| public final SourcePosition getPosition() Gets the source position.
| |
| getResult | back to summary |
|---|---|
| public final RegisterSpec getResult() Gets the result spec, if any. A return value of
| |
| getSources | back to summary |
|---|---|
| public final RegisterSpecList getSources() Gets the source specs.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
equals).
| |
| toHuman | back to summary |
|---|---|
| public String toHuman() Implements org. Gets a human-oriented (and slightly lossy) string for this instance.
| |
| toHumanWithInline | back to summary |
|---|---|
| protected final String toHumanWithInline(String extra) Returns the human string form of this instance, with the given bit added in the standard location for an inline argument. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toStringWithInline | back to summary |
|---|---|
| protected final String toStringWithInline(String extra) Returns the string form of this instance, with the given bit added in the standard location for an inline argument. | |
| withAddedCatch | back to summary |
|---|---|
| public abstract Insn withAddedCatch(Type type) 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 abstract Insn withNewRegisters(RegisterSpec result, RegisterSpecList sources) Returns an instance that is just like this one, except with new result and source registers.
| |
| withRegisterOffset | back to summary |
|---|---|
| public abstract Insn withRegisterOffset(int delta) 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() 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.
| |
Visitor, which has empty method
bodies for all methods.
| Access | Constructor and Description |
|---|---|
| public |
| BaseVisitor | back to summary |
|---|---|
| public BaseVisitor() | |
| visitFillArrayDataInsn | back to summary |
|---|---|
| public void visitFillArrayDataInsn(FillArrayDataInsn insn) Implements org. Doc from org. Visits a
| |
| visitPlainCstInsn | back to summary |
|---|---|
| public void visitPlainCstInsn(PlainCstInsn insn) Implements org. Doc from org. Visits a
| |
| visitPlainInsn | back to summary |
|---|---|
| public void visitPlainInsn(PlainInsn insn) Implements org. Doc from org. Visits a
| |
| visitSwitchInsn | back to summary |
|---|---|
| public void visitSwitchInsn(SwitchInsn insn) Implements org. Doc from org. Visits a
| |
| visitThrowingCstInsn | back to summary |
|---|---|
| public void visitThrowingCstInsn(ThrowingCstInsn insn) Implements org. Doc from org. Visits a
| |
| visitThrowingInsn | back to summary |
|---|---|
| public void visitThrowingInsn(ThrowingInsn insn) Implements org. Doc from org. Visits a
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | visitFillArrayDataInsn(FillArrayDataInsn
non-null; the instruction to visitVisits a |
| public void | |
| public void | |
| public void | |
| public void | visitThrowingCstInsn(ThrowingCstInsn
non-null; the instruction to visitVisits a |
| public void |
| visitFillArrayDataInsn | back to summary |
|---|---|
| public void visitFillArrayDataInsn(FillArrayDataInsn insn) Visits a
| |
| visitPlainCstInsn | back to summary |
|---|---|
| public void visitPlainCstInsn(PlainCstInsn insn) Visits a
| |
| visitPlainInsn | back to summary |
|---|---|
| public void visitPlainInsn(PlainInsn insn) Visits a
| |
| visitSwitchInsn | back to summary |
|---|---|
| public void visitSwitchInsn(SwitchInsn insn) Visits a
| |
| visitThrowingCstInsn | back to summary |
|---|---|
| public void visitThrowingCstInsn(ThrowingCstInsn insn) Visits a
| |
| visitThrowingInsn | back to summary |
|---|---|
| public void visitThrowingInsn(ThrowingInsn insn) Visits a
| |