类 ClassPresenceFilter

  • 所有已实现的接口:
    ClassVisitor

    public class ClassPresenceFilter
    extends java.lang.Object
    implements ClassVisitor
    This ClassVisitor delegates its visits to one of two ClassVisitor instances, depending on whether the name of the visited class file is present in a given ClassPool or not.
    • 构造器详细资料

      • ClassPresenceFilter

        public ClassPresenceFilter​(ClassPool classPool,
                                   ClassVisitor presentClassVisitor,
                                   ClassVisitor missingClassVisitor)
        Creates a new ClassPresenceFilter.
        参数:
        classPool - the ClassPool in which the presence will be tested.
        presentClassVisitor - the ClassVisitor to which visits of present class files will be delegated.
        missingClassVisitor - the ClassVisitor to which visits of missing class files will be delegated.
      • ClassPresenceFilter

        public ClassPresenceFilter​(ClassPool classPool,
                                   ClassVisitor presentClassVisitor)
        Creates a new ClassPresenceFilter.
        参数:
        classPool - the ClassPool in which the presence will be tested.
        presentClassVisitor - the ClassVisitor to which visits of present class files will be delegated.
    • 方法详细资料

      • visitAnyClass

        public void visitAnyClass​(Clazz clazz)
        从接口复制的说明: ClassVisitor
        Visits any Clazz instance. The more specific default implementations of this interface delegate to this method.
        指定者:
        visitAnyClass 在接口中 ClassVisitor