|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.util.MutabilityControl
com.android.dx.util.FixedSizeList
com.android.dx.util.LabeledList
com.android.dx.rop.code.BasicBlockList
public final class BasicBlockList
List of BasicBlock instances.
| Constructor Summary | |
|---|---|
BasicBlockList(int size)
Constructs an instance. |
|
| Method Summary | |
|---|---|
boolean |
catchesEqual(BasicBlock block1,
BasicBlock block2)
Compares the catches of two blocks for equality. |
void |
forEachInsn(Insn.Visitor visitor)
Visits each instruction of each block in the list, in order. |
BasicBlock |
get(int n)
Gets the element at the given index. |
int |
getEffectiveInstructionCount()
Gets the total instruction count for this instance, ignoring mark-local instructions which are not actually emitted. |
int |
getInstructionCount()
Gets the total instruction count for this instance. |
BasicBlockList |
getMutableCopy()
Returns a mutable copy of this list. |
int |
getRegCount()
Returns how many registers this method requires. |
BasicBlock |
labelToBlock(int label)
Gets the first block in the list with the given label, if any. |
BasicBlock |
preferredSuccessorOf(BasicBlock block)
Gets the preferred successor for the given block. |
void |
set(int n,
BasicBlock bb)
Sets the basic block at the given index. |
BasicBlockList |
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. |
| Methods inherited from class com.android.dx.util.LabeledList |
|---|
getLabelsInOrder, getMaxLabel, indexOfLabel, set, shrinkToFit |
| Methods inherited from class com.android.dx.util.FixedSizeList |
|---|
equals, get0, getOrNull0, hashCode, set0, size, toHuman, toHuman, toString, toString |
| Methods inherited from class com.android.dx.util.MutabilityControl |
|---|
isImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicBlockList(int size)
null,
and the first-block label is initially -1.
size - the size of the list| Method Detail |
|---|
public BasicBlock get(int n)
NullPointerException.
n - >= 0, < size(); which index
non-null; element at that index
public void set(int n,
BasicBlock bb)
n - >= 0, < size(); which indexbb - null-ok; the element to set at npublic int getRegCount()
BasicBlock
instances).
>= 0; the register countpublic int getInstructionCount()
>= 0; the total instruction countpublic int getEffectiveInstructionCount()
>= 0; the total instruction countpublic BasicBlock labelToBlock(int label)
label - >= 0; the label to look for
non-null; the so-labelled block
IllegalArgumentException - thrown if the label isn't foundpublic void forEachInsn(Insn.Visitor visitor)
visitor - non-null; visitor to usepublic BasicBlockList withRegisterOffset(int delta)
delta - the amount to offset register numbers by
non-null; an appropriately-constructed instancepublic BasicBlockList getMutableCopy()
non-null; an appropriately-constructed instancepublic BasicBlock preferredSuccessorOf(BasicBlock block)
null.
block - non-null; the block in question
null-ok; the preferred successor, if any
public boolean catchesEqual(BasicBlock block1,
BasicBlock block2)
block1 - non-null; one block to compareblock2 - non-null; the other block to compare
true if the two blocks' non-primary successors
are identical
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||