Class ClassNameCollector

  • All Implemented Interfaces:
    ClassVisitor

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

      • ClassNameCollector

        public ClassNameCollector​(java.util.Collection<java.lang.String> collection)
        Creates a new ClassNameCollector.
        Parameters:
        collection - the Collection in which all class names 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