javassist.bytecode.stackmap
Class BasicBlock
java.lang.Object
javassist.bytecode.stackmap.BasicBlock
- Direct Known Subclasses:
- 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 Java6 or later does not allow JSR, this class deals with JSR as a
non-branch instruction.
position
public int position
length
public int length
incoming
public int incoming
exit
public BasicBlock[] exit
stop
public boolean stop
toCatch
public BasicBlock.Catch toCatch
BasicBlock
protected BasicBlock(int pos)
find
public static BasicBlock find(BasicBlock[] blocks,
int pos)
throws BadBytecode
- Throws:
BadBytecode
toString
public String toString()
- Overrides:
toString
in class Object
toString2
protected void toString2(StringBuffer sbuf)
Copyright © 2011. All Rights Reserved.