|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavassist.bytecode.stackmap.BasicBlock
javassist.bytecode.analysis.ControlFlow.Block
public static class ControlFlow.Block
Basic block.
It is a sequence of contiguous instructions that do not contain
jump/branch instructions except the last one.
Since Java6 or later does not allow JSR
,
we deal with JSR
as a non-branch instruction.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javassist.bytecode.stackmap.BasicBlock |
---|
javassist.bytecode.stackmap.BasicBlock.Catch, javassist.bytecode.stackmap.BasicBlock.Maker |
Field Summary | |
---|---|
java.lang.Object |
clientData
A field that can be freely used for storing extra data. |
Method Summary | |
---|---|
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. |
ControlFlow.Block |
incoming(int n)
Returns the blocks 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. |
Methods inherited from class javassist.bytecode.stackmap.BasicBlock |
---|
find, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.Object clientData
Block
object.
The Javassist library never accesses this field.
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |