public static boolean isValidMethodName(String s){
  return isJavaIdentifier(s) || s.equals("<init>") || s.equals("<clinit>");
}

public static boolean isValidMethodName ( String s ) { return isJavaIdentifier ( s ) || s . equals ( "<init>" ) || s . equals ( "<clinit>" ) ; }
private string typedname ( method method ) { / / to do : use method . signature ( ) instead of method . arguments ( ) so that / / we get sensible results for classes without debugging info stringbuffer buf = new stringbuffer ( ) ; buf . append ( method . name ( ) ) ; buf . append ( " ( " ) ; iterator it = method . arguments ( ) . iterator ( ) ; while ( it . hasnext ( ) ) { buf . append ( ( ( localvariable ) it . next ( ) ) . typename ( ) ) ; if ( it . hasnext ( ) ) { buf . append ( " , " ) ; } } buf . append ( " ) " ) ; return buf . tostring ( ) ; }
