Class BasicBlock
- java.lang.Object
-
- org.hotswap.agent.javassist.bytecode.stackmap.BasicBlock
-
- Direct Known Subclasses:
ControlFlow.Block,TypedBlock
public class BasicBlock extends 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 classBasicBlock.Catchstatic classBasicBlock.Maker
-
Field Summary
Fields Modifier and Type Field Description protected BasicBlock[]exitprotected intincomingprotected intlengthprotected intpositionprotected booleanstopprotected BasicBlock.CatchtoCatch
-
Constructor Summary
Constructors Modifier Constructor Description protectedBasicBlock(int pos)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BasicBlockfind(BasicBlock[] blocks, int pos)StringtoString()protected voidtoString2(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
-
toString2
protected void toString2(StringBuffer sbuf)
-
-