|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.weld.util.bytecode.MethodUtils
public class MethodUtils
Utility class for working with methods
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 pool
public static int calculateMaxLocals(Method method)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |