public static XMethod createXMethod(String className, Method method) {
        String methodName = method.getName();
        String methodSig = method.getSignature();
        int accessFlags = method.getAccessFlags();

        return createXMethod(className, methodName, methodSig, accessFlags);
    }
public static XMethod createXMethod ( String className , Method method ) { String methodName = method . getName ( ) ; String methodSig = method . getSignature ( ) ; int accessFlags = method . getAccessFlags ( ) ; return createXMethod ( className , methodName , methodSig , accessFlags ) ; }
Create an XMethod object from a BCEL Method.

@param className
the class to which the Method belongs
@param method
the Method
@return an XMethod representing the Method