| Modifier and Type | Class and Description |
|---|---|
| public static interface | BasicBlock.
BasicBlock visitor interface |
| Modifier and Type | Field and Description |
|---|---|
| private final InsnList | insns
|
| private final int | label
|
| private final int | primarySuccessor
|
| private final IntList | successors
|
| Access | Constructor and Description |
|---|---|
| public | BasicBlock(int
>= 0; target label for this blocknon-null; list of instructions in this blocknon-null; full list of successors that this
block may branch to>= -1; the primary / standard-flow /
"default" successor, or -1 if this block has no
successors (that is, it exits the function/method or is an
unconditional throw)Constructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true iff this block might throw an
exceptionReturns whether this block might throw an exception. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public TypeList | Returns: non-null; the exception handler types associated with
this blockReturns the exception handler types associated with this block, if any. |
| public Insn | |
| public InsnList | |
| public int | Returns: >= 0; the labelImplements org. |
| public Insn | |
| public int | Returns: >= -1; the primary successor, or -1 if this
block has no successors at allGets the primary successor of this block. |
| public int | Returns: >= 0; the secondary successorGets the secondary successor of this block. |
| public IntList | Returns: non-null; the successors listGets the list of successors that this block may branch to. |
| public boolean | Returns: true iff this block has any associated
exception handlersReturns whether this block has any associated exception handlers. |
| public int | |
| public String | |
| public BasicBlock | Returns: non-null; an appropriately-constructed instancethe amount to offset register numbers by delta)Returns an instance that is identical to this one, except that the registers in each instruction are offset by the given amount. |
| insns | back to summary |
|---|---|
| private final InsnList insns
| |
| label | back to summary |
|---|---|
| private final int label
| |
| primarySuccessor | back to summary |
|---|---|
| private final int primarySuccessor
| |
| successors | back to summary |
|---|---|
| private final IntList successors
| |
| BasicBlock | back to summary |
|---|---|
| public BasicBlock(int label, InsnList insns, IntList successors, int primarySuccessor) Constructs an instance. The predecessor set is set to
| |
| canThrow | back to summary |
|---|---|
| public boolean canThrow() Returns whether this block might throw an exception. This is
just a convenient shorthand for
| |
| equals | back to summary |
|---|---|
| public 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,
| |
| getExceptionHandlerTypes | back to summary |
|---|---|
| public TypeList getExceptionHandlerTypes() Returns the exception handler types associated with this block,
if any. This is just a shorthand for inspecting the last
instruction in the block to see if it could throw, and if so,
grabbing the catch list out of it. If not, this returns an
empty list (not
| |
| getFirstInsn | back to summary |
|---|---|
| public Insn getFirstInsn() Gets the first instruction of this block. This is just a
convenient shorthand for
| |
| getInsns | back to summary |
|---|---|
| public InsnList getInsns() Gets the list of instructions inside this block.
| |
| getLabel | back to summary |
|---|---|
| public int getLabel() Implements org. Gets the target label of this block.
| |
| getLastInsn | back to summary |
|---|---|
| public Insn getLastInsn() Gets the last instruction of this block. This is just a
convenient shorthand for
| |
| getPrimarySuccessor | back to summary |
|---|---|
| public int getPrimarySuccessor() Gets the primary successor of this block.
| |
| getSecondarySuccessor | back to summary |
|---|---|
| public int getSecondarySuccessor() Gets the secondary successor of this block. It is only valid to call this method on blocks that have exactly two successors.
| |
| getSuccessors | back to summary |
|---|---|
| public IntList getSuccessors() Gets the list of successors that this block may branch to.
| |
| hasExceptionHandlers | back to summary |
|---|---|
| public boolean hasExceptionHandlers() Returns whether this block has any associated exception handlers. This is just a shorthand for inspecting the last instruction in the block to see if it could throw, and if so, whether it in fact has any associated handlers.
| |
| hashCode | back to summary |
|---|---|
| public 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).
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| withRegisterOffset | back to summary |
|---|---|
| public BasicBlock withRegisterOffset(int delta) Returns an instance that is identical to this one, except that the registers in each instruction are offset by the given amount.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| visitBlock | back to summary |
|---|---|
| public void visitBlock(BasicBlock b) Visits a basic block
| |