Class JamClassIterator

  • All Implemented Interfaces:
    Iterator

    public class JamClassIterator
    extends Object
    implements Iterator
    A typed Iterator on a set of JClasses. The use of JamClassIterator (as opposed to arrays or Collections of JClass) is encouraged as it can significantly reduce memory consumption when using JAM to process large numbers of java classes.
    • Constructor Detail

      • JamClassIterator

        public JamClassIterator​(JamClassLoader loader,
                                String[] classes)
        Constructs a new JamClassIterator
        Parameters:
        loader - JamClassLoader from which to load the classes
        classes - Array of full-qualified classnames to iterate on.
        Throws:
        IllegalArgumentException - if either argument is null.