Method(MethodDoc methodDoc){
  this.methodDoc=methodDoc;
  exceptionTypes=methodDoc.thrownExceptions();
  Arrays.sort(exceptionTypes,new ClassDocComparator());
  operationString=computeOperationString();
  nameAndDescriptor=methodDoc.name() + Util.methodDescriptorOf(methodDoc);
  methodHash=computeMethodHash();
}

Method ( MethodDoc methodDoc ) { this . methodDoc = methodDoc ; exceptionTypes = methodDoc . thrownExceptions ( ) ; Arrays . sort ( exceptionTypes , new ClassDocComparator ( ) ) ; operationString = computeOperationString ( ) ; nameAndDescriptor = methodDoc . name ( ) + Util . methodDescriptorOf ( methodDoc ) ; methodHash = computeMethodHash ( ) ; }
creates a new method instance for the specified method .
