public static Selection forClass(Class cl) {
        java.lang.reflect.Constructor[] constrs;
        int i;
        List<Function> lst;
        Function fn;

        lst = new ArrayList<Function>();
        constrs = cl.getConstructors();
        for (i = 0; i < constrs.length; i++) {
            fn = create(constrs[i]);
            if (fn != null) {
                lst.add(fn);
            }
        }
        return new Selection(lst);
    }
public static Selection forClass ( Class cl ) { java . lang . reflect . Constructor [ ] constrs ; int i ; List < Function > lst ; Function fn ; lst = new ArrayList < Function > ( ) ; constrs = cl . getConstructors ( ) ; for ( i = 0 ; i < constrs . length ; i ++ ) { fn = create ( constrs [ i ] ) ; if ( fn != null ) { lst . add ( fn ) ; } } return new Selection ( lst ) ; }
Gets all valid Constructors for the specified Class.
@param  cl  the clase whose constructors are searched
@return all valid Constructors found.