public static class ControlFlow.Block extends BasicBlock
JSR
,
we deal with JSR
as a non-branch instruction.BasicBlock.Catch, BasicBlock.Maker
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
clientData
A field that can be freely used for storing extra data.
|
(package private) ControlFlow.Block[] |
entrances |
(package private) int |
index |
(package private) MethodInfo |
method |
Constructor and Description |
---|
Block(int pos,
MethodInfo minfo) |
Modifier and Type | Method and Description |
---|---|
ControlFlow.Catcher[] |
catchers()
Returns catch clauses that will catch an exception thrown
in this block.
|
ControlFlow.Block |
exit(int n)
Returns the n-th block that may be executed after this
block.
|
int |
exits()
Return the number of the blocks that may be executed
after this block.
|
(package private) BasicBlock[] |
getExit() |
ControlFlow.Block |
incoming(int n)
Returns the block that the control may jump into this block from.
|
int |
incomings()
Returns the number of the control paths entering this block.
|
int |
index()
Returns the position of this block in the array of
basic blocks that the
basicBlocks method
returns. |
int |
length()
Returns the length of this block.
|
int |
position()
Returns the position of the first instruction
in this block.
|
protected void |
toString2(java.lang.StringBuffer sbuf) |
find, toString
public java.lang.Object clientData
Block
object.
The Javassist library never accesses this field.int index
MethodInfo method
ControlFlow.Block[] entrances
Block(int pos, MethodInfo minfo)
protected void toString2(java.lang.StringBuffer sbuf)
toString2
in class BasicBlock
BasicBlock[] getExit()
public int index()
basicBlocks
method
returns.ControlFlow.basicBlocks()
public int position()
public int length()
public int incomings()
public ControlFlow.Block incoming(int n)
public int exits()
public ControlFlow.Block exit(int n)
n
- an index in the array of exit blocks.public ControlFlow.Catcher[] catchers()