Class SubclassToAdder

  • All Implemented Interfaces:
    ClassVisitor

    public class SubclassToAdder
    extends java.lang.Object
    implements ClassVisitor
    This ClassVisitor adds all classes that it visits to the list of subclasses of the given target class.
    • Constructor Detail

      • SubclassToAdder

        public SubclassToAdder​(Clazz targetClass)
        Creates a new SubclassAdder that will add subclasses to the given target class.
    • 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