public static XMethod createXMethod(InvokeInstruction invokeInstruction, ConstantPoolGen cpg) { String className = invokeInstruction.getClassName(cpg); String methodName = invokeInstruction.getName(cpg); String methodSig = invokeInstruction.getSignature(cpg);     return (invokeInstruction.getOpcode() == Constants.INVOKESTATIC) ? new StaticMethod(className, methodName, methodSig, Constants.ACC_STATIC | Constants.ACC_PUBLIC) : new InstanceMethod(className, methodName, methodSig, Constants.ACC_PUBLIC);
public static XMethod createXMethod(JavaClass javaClass, Method method) { String className = javaClass.getClassName(); String methodName = method.getName(); String methodSig = method.getSignature(); int accessFlags = method.getAccessFlags(); if (method.isStatic()) return new StaticMethod(className, methodName, methodSig, accessFlags); else return new InstanceMethod(className, methodName, methodSig, accessFlags);
	public static XMethod createXMethod(InvokeInstruction invokeInstruction, ConstantPoolGen cpg) {		String className = invokeInstruction.getClassName(cpg);		String methodName = invokeInstruction.getName(cpg);		String methodSig = invokeInstruction.getSignature(cpg);				// NOTE: access flags are ignored when comparing		// XMethods.  So it's OK that we make up values here.				return (invokeInstruction.getOpcode() == Constants.INVOKESTATIC)			? new StaticMethod(className, methodName, methodSig, Constants.ACC_STATIC | Constants.ACC_PUBLIC)			: new InstanceMethod(className, methodName, methodSig, Constants.ACC_PUBLIC);	}