public MethodInfo [ ] getConstructors ( ) { int size = mMethods . size ( ) ; List < MethodInfo > ctorsOnly = new ArrayList < MethodInfo > ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { MethodInfo method = mMethods . get ( i ) ; if ( "<init>" . equals ( method . getName ( ) ) ) { ctorsOnly . add ( method ) ; } } MethodInfo [ ] ctorsArray = new MethodInfo [ ctorsOnly . size ( ) ] ; return ctorsOnly . toArray ( ctorsArray ) ; }
Returns all the constructors defined in this class .