private void storeArgs ( Constructor constructor , Array conArgs ) { Class [ ] pmt = constructor . getParameterTypes ( ) ; Object o = conArgs . get ( pmt . length + 1 , null ) ; Constructor [ ] args ; if ( o == null ) { args = new Constructor [ 1 ] ; conArgs . setEL ( pmt . length + 1 , args ) ; } else { Constructor [ ] cs = ( Constructor [ ] ) o ; args = new Constructor [ cs . length + 1 ] ; for ( int i = 0 ; i < cs . length ; i ++ ) { args [ i ] = cs [ i ] ; } conArgs . setEL ( pmt . length + 1 , args ) ; } args [ args . length - 1 ] = constructor ; }
seperate and store the different arguments of one constructor