Package com.android.dx.cf.code
Class ByteBlock
java.lang.Object
com.android.dx.cf.code.ByteBlock
- All Implemented Interfaces:
LabeledItem
Representation of a basic block in a bytecode array.
-
Constructor Summary
ConstructorDescriptionByteBlock
(int label, int start, int end, IntList successors, ByteCatchList catches) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of exceptions caught and their handler targets.int
getEnd()
Gets the bytecode offset (exclusive) of the end of this block.int
getLabel()
Gets the label of this block.int
getStart()
Gets the bytecode offset (inclusive) of the start of this block.Gets the list of successors that this block may branch to non-exceptionally.toString()
-
Constructor Details
-
ByteBlock
Constructs an instance.- Parameters:
label
->= 0;
target label for this blockstart
->= 0;
bytecode offset (inclusive) of the start of the blockend
-> start;
bytecode offset (exclusive) of the end of the blocksuccessors
-non-null;
list of successors that this block may branch tocatches
-non-null;
list of exceptions caught and their handler targets
-
-
Method Details
-
toString
-
getLabel
public int getLabel()Gets the label of this block.- Specified by:
getLabel
in interfaceLabeledItem
- Returns:
>= 0;
the label
-
getStart
public int getStart()Gets the bytecode offset (inclusive) of the start of this block.- Returns:
>= 0;
the start offset
-
getEnd
public int getEnd()Gets the bytecode offset (exclusive) of the end of this block.- Returns:
> getStart();
the end offset
-
getSuccessors
Gets the list of successors that this block may branch to non-exceptionally.- Returns:
non-null;
the successor list
-
getCatches
Gets the list of exceptions caught and their handler targets.- Returns:
non-null;
the catch list
-