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 class
static class
(package private) static class
A Mark indicates the position of a branch instruction or a branch target. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BasicBlock[]
protected int
protected int
protected int
protected boolean
protected BasicBlock.Catch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicBlock
find
(BasicBlock[] blocks, int pos) toString()
protected void
toString2
(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
-