public void addMunged (Class<?> clazz, String... replace)
    {
        String name = clazz.getName();
        for (int ii = 0; ii < replace.length; ii += 2) {
            name = name.replace(replace[ii], replace[ii+1]);
        }
        _imports.add(name);
    }
public void addMunged ( Class < ? > clazz , String ... replace ) { String name = clazz . getName ( ) ; for ( int ii = 0 ; ii < replace . length ; ii += 2 ) { name = name . replace ( replace [ ii ] , replace [ ii + 1 ] ) ; } _imports . add ( name ) ; }
Adds a class' name to the imports but first performs the given list of search/replaces as
described above.
@param clazz the class whose name is munged and added
@param replace array of pairs to search/replace on the name before adding