Class FunctionalInterfaceFilter

  • All Implemented Interfaces:
    ClassVisitor

    public class FunctionalInterfaceFilter
    extends java.lang.Object
    implements ClassVisitor
    This ClassVisitor delegates its visits to another given ClassVisitor, but only for functional interfaces, that is, interface classes that have exactly one abstract method.
    • Constructor Detail

      • FunctionalInterfaceFilter

        public FunctionalInterfaceFilter​(ClassVisitor classVisitor)
        Creates a new ProgramClassFilter.
        Parameters:
        classVisitor - the ClassVisitor to which visits will be delegated.
    • 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