Class TypedBlock
- java.lang.Object
-
- org.hotswap.agent.javassist.bytecode.stackmap.BasicBlock
-
- org.hotswap.agent.javassist.bytecode.stackmap.TypedBlock
-
public class TypedBlock extends BasicBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypedBlock.Maker-
Nested classes/interfaces inherited from class org.hotswap.agent.javassist.bytecode.stackmap.BasicBlock
BasicBlock.Catch
-
-
Field Summary
Fields Modifier and Type Field Description TypeData[]localsTypesintnumLocalsintstackTopTypeData[]stackTypes
-
Constructor Summary
Constructors Modifier Constructor Description protectedTypedBlock(int pos)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanalreadySet()static StringgetRetType(String desc)static TypedBlock[]makeBlocks(MethodInfo minfo, CodeAttribute ca, boolean optimize)Divides the method body into basic blocks.voidresetNumLocals()voidsetStackMap(int st, TypeData[] stack, int nl, TypeData[] locals)protected voidtoString2(StringBuffer sbuf)-
Methods inherited from class org.hotswap.agent.javassist.bytecode.stackmap.BasicBlock
find, toString
-
-
-
-
Method Detail
-
makeBlocks
public static TypedBlock[] makeBlocks(MethodInfo minfo, CodeAttribute ca, boolean optimize) throws BadBytecode
Divides the method body into basic blocks. The type information of the first block is initialized.- Parameters:
optimize- if it is true and the method does not include branches, this method returns null.- Throws:
BadBytecode
-
toString2
protected void toString2(StringBuffer sbuf)
- Overrides:
toString2in classBasicBlock
-
alreadySet
public boolean alreadySet()
-
setStackMap
public void setStackMap(int st, TypeData[] stack, int nl, TypeData[] locals) throws BadBytecode- Throws:
BadBytecode
-
resetNumLocals
public void resetNumLocals()
-
-