Package javassist.bytecode.stackmap
Class MapMaker
- java.lang.Object
-
- javassist.bytecode.stackmap.Tracer
-
- javassist.bytecode.stackmap.MapMaker
-
-
Field Summary
-
Fields inherited from class javassist.bytecode.stackmap.Tracer
classPool, cpool, localsTypes, returnType, stackTop, stackTypes
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MapMaker(MapMaker old)
MapMaker(ClassPool classes, MethodInfo minfo, CodeAttribute ca)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
copyTypeData(int n, TypeData[] srcTypes, TypeData[] destTypes)
static StackMapTable
make(ClassPool classes, MethodInfo minfo)
Computes the stack map table of the given method and returns it.static StackMap
make2(ClassPool classes, MethodInfo minfo)
Computes the stack map table for J2ME.protected static int
recordTypeData(int n, TypeData[] srcTypes, TypeData[] destTypes)
StackMapTable
toStackMap(TypedBlock[] blocks)
StackMap
toStackMap2(ConstPool cp, TypedBlock[] blocks)
-
Methods inherited from class javassist.bytecode.stackmap.Tracer
doOpcode, visitBranch, visitGoto, visitJSR, visitLookupSwitch, visitRET, visitReturn, visitTableSwitch, visitThrow
-
-
-
-
Constructor Detail
-
MapMaker
public MapMaker(ClassPool classes, MethodInfo minfo, CodeAttribute ca)
-
MapMaker
protected MapMaker(MapMaker old)
-
-
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 or it includes JSR.- Throws:
BadBytecode
-
make2
public static StackMap make2(ClassPool classes, MethodInfo minfo) throws BadBytecode
Computes the stack map table for J2ME. It returns null if the given method does not have to have a stack map table or it includes JSR.- Throws:
BadBytecode
-
recordTypeData
protected static int recordTypeData(int n, TypeData[] srcTypes, TypeData[] destTypes)
-
toStackMap
public StackMapTable toStackMap(TypedBlock[] blocks)
-
toStackMap2
public StackMap toStackMap2(ConstPool cp, TypedBlock[] blocks)
-
-