private void writeOutArgs ( List < String > elements , Writer out , boolean hasParams ) throws IOException { if ( elements != null && elements . size ( ) > 0 ) { ArrayList < String > args = new ArrayList < String > ( ) ; for ( String param : elements ) { if ( param . equalsIgnoreCase ( "boolean" ) ) { args . add ( "boolean bool" ) ; } else if ( param . equalsIgnoreCase ( "integer" ) ) { args . add ( "i int" ) ; } else if ( param . equalsIgnoreCase ( "string" ) ) { args . add ( "str string" ) ; } else if ( param . equalsIgnoreCase ( "type" ) ) { args . add ( "t string" ) ; } else { args . add ( param . toLowerCase ( ) + " string" ) ; } } out . write ( StringUtils . join ( args , ", " ) ) ; } }
Writes the function arguments