javassist.bytecode.stackmap
Class TypedBlock

java.lang.Object
  extended by javassist.bytecode.stackmap.BasicBlock
      extended by javassist.bytecode.stackmap.TypedBlock

public class TypedBlock
extends BasicBlock


Nested Class Summary
static class TypedBlock.Maker
           
 
Nested classes/interfaces inherited from class javassist.bytecode.stackmap.BasicBlock
BasicBlock.Catch
 
Field Summary
 boolean[] inputs
           
 TypeData[] localsTypes
           
 byte[] localsUsage
           
 int numLocals
           
 int stackTop
           
 TypeData[] stackTypes
           
 int status
           
 boolean updating
           
 
Fields inherited from class javassist.bytecode.stackmap.BasicBlock
exit, incoming, length, position, stop, toCatch
 
Constructor Summary
protected TypedBlock(int pos)
           
 
Method Summary
 boolean alreadySet()
           
static java.lang.String getRetType(java.lang.String desc)
           
static TypedBlock[] makeBlocks(MethodInfo minfo, CodeAttribute ca, boolean optimize)
          Divides the method body into basic blocks.
 void resetNumLocals()
           
 void setStackMap(int st, TypeData[] stack, int nl, TypeData[] locals)
           
protected  void toString2(java.lang.StringBuffer sbuf)
           
 
Methods inherited from class javassist.bytecode.stackmap.BasicBlock
find, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stackTop

public int stackTop

numLocals

public int numLocals

stackTypes

public TypeData[] stackTypes

localsTypes

public TypeData[] localsTypes

inputs

public boolean[] inputs

updating

public boolean updating

status

public int status

localsUsage

public byte[] localsUsage
Constructor Detail

TypedBlock

protected TypedBlock(int pos)
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:
optmize - if it is true and the method does not include branches, this method returns null.
Throws:
BadBytecode

toString2

protected void toString2(java.lang.StringBuffer sbuf)
Overrides:
toString2 in class BasicBlock

alreadySet

public boolean alreadySet()

setStackMap

public void setStackMap(int st,
                        TypeData[] stack,
                        int nl,
                        TypeData[] locals)
                 throws BadBytecode
Throws:
BadBytecode

resetNumLocals

public void resetNumLocals()

getRetType

public static java.lang.String getRetType(java.lang.String desc)


Copyright © 2011. All Rights Reserved.