Package javassist.bytecode.stackmap
Class BasicBlock
java.lang.Object
javassist.bytecode.stackmap.BasicBlock
- Direct Known Subclasses:
ControlFlow.Block,TypedBlock
A basic block is a sequence of bytecode that does not contain jump/branch
instructions except at the last bytecode.
Since Java7 or later does not allow JSR, this class throws an exception when
it finds JSR.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) static classstatic class(package private) static classA Mark indicates the position of a branch instruction or a branch target. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BasicBlock[]protected intprotected intprotected intprotected booleanprotected BasicBlock.Catch -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicBlockfind(BasicBlock[] blocks, int pos) toString()protected voidtoString2(StringBuilder sbuf)
-
Field Details
-
position
protected int position -
length
protected int length -
incoming
protected int incoming -
exit
-
stop
protected boolean stop -
toCatch
-
-
Constructor Details
-
BasicBlock
protected BasicBlock(int pos)
-
-
Method Details
-
find
- Throws:
BadBytecode
-
toString
-
toString2
-