public static < T > Class < ? > [ ] getClasses ( Type [ ] types ) { if ( types == null ) return null ; if ( types . length == 0 ) return new Class < ? > [ 0 ] ; Class < ? > [ ] classes = new Class [ types . length ] ; // Resolve types by chasing down type variables. for ( int i = 0 ; i < types . length ; i ++ ) { classes [ i ] = getClass ( types [ i ] ) ; } return classes ; }
Get the underlying class array for a type array or null if the type is a variable type .