javassist.bytecode.stackmap
Class MapMaker

java.lang.Object
  extended by javassist.bytecode.stackmap.Tracer
      extended by javassist.bytecode.stackmap.MapMaker
All Implemented Interfaces:
TypeTag

public class MapMaker
extends Tracer

Stack map maker.


Field Summary
 
Fields inherited from class javassist.bytecode.stackmap.Tracer
classPool, cpool, localsTypes, returnType, stackTop, stackTypes
 
Fields inherited from interface javassist.bytecode.stackmap.TypeTag
DOUBLE, FLOAT, INTEGER, LONG, TOP
 
Constructor Summary
  MapMaker(ClassPool classes, MethodInfo minfo, CodeAttribute ca)
           
protected MapMaker(MapMaker old, boolean copyStack)
           
 
Method Summary
static StackMapTable make(ClassPool classes, MethodInfo minfo)
          Computes the stack map table of the given method and returns it.
 StackMapTable toStackMap(TypedBlock[] blocks)
           
 
Methods inherited from class javassist.bytecode.stackmap.Tracer
copyFrom, doOpcode, visitBranch, visitGoto, visitJSR, visitLookupSwitch, visitRET, visitReturn, visitTableSwitch, visitThrow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapMaker

public MapMaker(ClassPool classes,
                MethodInfo minfo,
                CodeAttribute ca)

MapMaker

protected MapMaker(MapMaker old,
                   boolean copyStack)
Method Detail

make

public static StackMapTable make(ClassPool classes,
                                 MethodInfo minfo)
                          throws BadBytecode
Computes the stack map table of the given method and returns it. It returns null if the given method does not have to have a stack map table.

Throws:
BadBytecode

toStackMap

public StackMapTable toStackMap(TypedBlock[] blocks)


Copyright © 2011. All Rights Reserved.