public class MethodUtils extends Object
Modifier and Type | Method and Description |
---|---|
static int |
calculateMaxLocals(Method method)
Calculates maxLocals required to hold all parameters and this, assuming
that user code does not require any extra variables
|
static javassist.bytecode.MethodInfo |
makeMethod(MethodInformation methodInfo,
Class<?>[] exceptions,
javassist.bytecode.Bytecode body,
javassist.bytecode.ConstPool pool)
Creates a MethodInfo from the given information.
|
public static javassist.bytecode.MethodInfo makeMethod(MethodInformation methodInfo, Class<?>[] exceptions, javassist.bytecode.Bytecode body, javassist.bytecode.ConstPool pool)
methodInfo
- The method informationexceptions
- checked exceptions thrown by the methodbody
- the method bytecode. This must have the correct value for
maxLocals already setpool
- the const poolpublic static int calculateMaxLocals(Method method)
Copyright © 2013 Seam Framework. All rights reserved.