public static XMethod createXMethod(PreorderVisitor visitor) { JavaClass javaClass = visitor.getThisClass(); Method method = visitor.getMethod(); return createXMethod(javaClass, method);
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(PreorderVisitor visitor) {		JavaClass javaClass = visitor.getThisClass();		Method method = visitor.getMethod();		return createXMethod(javaClass, method);	}