Class BottomClassFilter

  • All Implemented Interfaces:
    ClassVisitor

    public class BottomClassFilter
    extends java.lang.Object
    implements ClassVisitor
    This ClassVisitor delegates its visits to one of two other given ClassVisitor instances, depending on whether they have any subclasses or not.
    • Constructor Detail

      • BottomClassFilter

        public BottomClassFilter​(ClassVisitor bottomClassVisitor)
        Creates a new BottomClassFilter.
        Parameters:
        bottomClassVisitor - the ClassVisitor to which visits to bottom classes will be delegated.
      • BottomClassFilter

        public BottomClassFilter​(ClassVisitor bottomClassVisitor,
                                 ClassVisitor otherClassVisitor)
        Creates a new BottomClassFilter.
        Parameters:
        bottomClassVisitor - the ClassVisitor to which visits to bottom classes will be delegated.
        otherClassVisitor - the ClassVisitor to which visits to non-bottom classes will be delegated.