public final class ByteBlock extends java.lang.Object implements LabeledItem
| Constructor and Description |
|---|
ByteBlock(int label,
int start,
int end,
IntList successors,
ByteCatchList catches)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
ByteCatchList |
getCatches()
Gets 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.
|
IntList |
getSuccessors()
Gets the list of successors that this block may branch to
non-exceptionally.
|
java.lang.String |
toString() |
public ByteBlock(int label,
int start,
int end,
IntList successors,
ByteCatchList catches)
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 targetspublic java.lang.String toString()
toString in class java.lang.Objectpublic int getLabel()
getLabel in interface LabeledItem>= 0; the labelpublic int getStart()
>= 0; the start offsetpublic int getEnd()
> getStart(); the end offsetpublic IntList getSuccessors()
non-null; the successor listpublic ByteCatchList getCatches()
non-null; the catch listCopyright © 2020. All Rights Reserved.