类 ClassHierarchyTraveler

  • 所有已实现的接口:
    ClassVisitor

    public class ClassHierarchyTraveler
    extends java.lang.Object
    implements ClassVisitor
    This ClassVisitor lets a given ClassVisitor optionally travel to the visited class, its superclass, its interfaces, and its subclasses.
    • 构造器详细资料

      • ClassHierarchyTraveler

        public ClassHierarchyTraveler​(boolean visitThisClass,
                                      boolean visitSuperClass,
                                      boolean visitInterfaces,
                                      boolean visitSubclasses,
                                      ClassVisitor classVisitor)
        Creates a new ClassHierarchyTraveler.
        参数:
        visitThisClass - specifies whether to visit the originally visited classes.
        visitSuperClass - specifies whether to visit the super classes of the visited classes.
        visitInterfaces - specifies whether to visit the interfaces of the visited classes.
        visitSubclasses - specifies whether to visit the subclasses of the visited classes.
        classVisitor - the ClassVisitor to which visits 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