public void parseForMethod(GenericDeclaration genericDecl,String signature,Class<?>[] rawExceptionTypes){
  setInput(genericDecl,signature);
  if (!eof) {
    parseMethodTypeSignature(rawExceptionTypes);
  }
 else {
    Method m=(Method)genericDecl;
    this.formalTypeParameters=EmptyArray.TYPE_VARIABLE;
    Class<?>[] parameterTypes=m.getParameterTypes();
    if (parameterTypes.length == 0) {
      this.parameterTypes=ListOfTypes.EMPTY;
    }
 else {
      this.parameterTypes=new ListOfTypes(parameterTypes);
    }
    Class<?>[] exceptionTypes=m.getExceptionTypes();
    if (exceptionTypes.length == 0) {
      this.exceptionTypes=ListOfTypes.EMPTY;
    }
 else {
      this.exceptionTypes=new ListOfTypes(exceptionTypes);
    }
    this.returnType=m.getReturnType();
  }
}

public void parseForMethod ( GenericDeclaration genericDecl , String signature , Class < ? > [ ] rawExceptionTypes ) { setInput ( genericDecl , signature ) ; if ( ! eof ) { parseMethodTypeSignature ( rawExceptionTypes ) ; } else { Method m = ( Method ) genericDecl ; this . formalTypeParameters = EmptyArray . TYPE_VARIABLE ; Class < ? > [ ] parameterTypes = m . getParameterTypes ( ) ; if ( parameterTypes . length == 0 ) { this . parameterTypes = ListOfTypes . EMPTY ; } else { this . parameterTypes = new ListOfTypes ( parameterTypes ) ; } Class < ? > [ ] exceptionTypes = m . getExceptionTypes ( ) ; if ( exceptionTypes . length == 0 ) { this . exceptionTypes = ListOfTypes . EMPTY ; } else { this . exceptionTypes = new ListOfTypes ( exceptionTypes ) ; } this . returnType = m . getReturnType ( ) ; } }
parses the generic signature of a method and creates the data structure representing the signature .
