Class FilteredClassVisitor

    • Constructor Summary

      Constructors 
      Constructor Description
      FilteredClassVisitor​(java.lang.String classNameFilter, ClassVisitor classVisitor)
      Creates a new FilteredClassVisitor with the given class name filter and visitor.
      FilteredClassVisitor​(StringMatcher classNameFilter, ClassVisitor classVisitor)
      Creates a new FilteredClassVisitor with the given class name filter and visitor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void visitClassPool​(ClassPool classPool)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilteredClassVisitor

        public FilteredClassVisitor​(java.lang.String classNameFilter,
                                    ClassVisitor classVisitor)
        Creates a new FilteredClassVisitor with the given class name filter and visitor.
        Parameters:
        classNameFilter - the regular expression that is used to filter the classes of a ClassPool that must be visited. If the value of classNameFilter is null, then no classes can possibly match, so this instance will never visit any ClassPool.
        classVisitor - the visitor that is passed along when a ClassPool is visited.
      • FilteredClassVisitor

        public FilteredClassVisitor​(StringMatcher classNameFilter,
                                    ClassVisitor classVisitor)
        Creates a new FilteredClassVisitor with the given class name filter and visitor.
        Parameters:
        classNameFilter - the filter that is used to filter the classes of a ClassPool that must be visited. If the value of classNameFilter is null, then no classes can possibly match, so this instance will never visit any ClassPool.
        classVisitor - the visitor that is passed along when a ClassPool is visited.