public String getArgList ( boolean quoteDelimit ) { StringBuffer sb = new StringBuffer ( ) ; int i = 0 ; if ( _methodDecl . getParameters ( ) == null ) return "" ; for ( ParameterDeclaration paramDecl : _methodDecl . getParameters ( ) ) { if ( i != 0 ) sb . append ( ", " ) ; // BUGBUG: when the MethodDeclaration is derived from Reflection, this seems // to return 'arg0' for all arguments! String argName = paramDecl . getSimpleName ( ) ; if ( quoteDelimit ) sb . append ( ' ' ) ; if ( argName . equals ( "arg0" ) ) sb . append ( "arg" + i ) ; else sb . append ( argName ) ; if ( quoteDelimit ) sb . append ( ' ' ) ; i ++ ; } return sb . toString ( ) ; }
Returns the the method argument names in a comma separated list