public static XMethod createXMethod(InvokeInstruction invokeInstruction,ConstantPoolGen cpg){
  String className=invokeInstruction.getClassName(cpg);
  String methodName=invokeInstruction.getName(cpg);
  String methodSig=invokeInstruction.getSignature(cpg);
  return createXMethod(className,methodName,methodSig,invokeInstruction.getOpcode() == Constants.INVOKESTATIC);
}

public static XMethod createXMethod ( InvokeInstruction invokeInstruction , ConstantPoolGen cpg ) { String className = invokeInstruction . getClassName ( cpg ) ; String methodName = invokeInstruction . getName ( cpg ) ; String methodSig = invokeInstruction . getSignature ( cpg ) ; return createXMethod ( className , methodName , methodSig , invokeInstruction . getOpcode ( ) == Constants . INVOKESTATIC ) ; }
create an xmethod object from an invokeinstruction .
