Package javassist.bytecode.stackmap
Class BasicBlock
- java.lang.Object
-
- javassist.bytecode.stackmap.BasicBlock
-
- Direct Known Subclasses:
ControlFlow.Block
,TypedBlock
public class BasicBlock extends java.lang.Object
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 Classes Modifier and Type Class Description static class
BasicBlock.Catch
static class
BasicBlock.Maker
-
Field Summary
Fields Modifier and Type Field Description protected BasicBlock[]
exit
protected int
incoming
protected int
length
protected int
position
protected boolean
stop
protected BasicBlock.Catch
toCatch
-
Constructor Summary
Constructors Modifier Constructor Description protected
BasicBlock(int pos)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BasicBlock
find(BasicBlock[] blocks, int pos)
java.lang.String
toString()
protected void
toString2(java.lang.StringBuffer sbuf)
-
-
-
Field Detail
-
position
protected int position
-
length
protected int length
-
incoming
protected int incoming
-
exit
protected BasicBlock[] exit
-
stop
protected boolean stop
-
toCatch
protected BasicBlock.Catch toCatch
-
-
Method Detail
-
find
public static BasicBlock find(BasicBlock[] blocks, int pos) throws BadBytecode
- Throws:
BadBytecode
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString2
protected void toString2(java.lang.StringBuffer sbuf)
-
-