Class ClassCollector

  • All Implemented Interfaces:
    ClassVisitor

    public class ClassCollector
    extends java.lang.Object
    implements ClassVisitor
    This ClassVisitor collects the classes that it visits in the given collection.
    • Constructor Detail

      • ClassCollector

        public ClassCollector​(java.util.Collection<Clazz> collection)
        Creates a new ClassCollector.
        Parameters:
        collection - the Collection in which all classes will be collected.
    • Method Detail

      • visitAnyClass

        public void visitAnyClass​(Clazz clazz)
        Description copied from interface: ClassVisitor
        Visits any Clazz instance. The more specific default implementations of this interface delegate to this method.
        Specified by:
        visitAnyClass in interface ClassVisitor