Class ClassHierarchyTraveler

java.lang.Object
proguard.classfile.visitor.ClassHierarchyTraveler
All Implemented Interfaces:
ClassVisitor

public class ClassHierarchyTraveler extends Object implements ClassVisitor
This ClassVisitor lets a given ClassVisitor optionally travel to the visited class, its superclass, its interfaces, and its subclasses.
  • Constructor Details

    • ClassHierarchyTraveler

      public ClassHierarchyTraveler(boolean visitThisClass, boolean visitSuperClass, boolean visitInterfaces, boolean visitSubclasses, ClassVisitor classVisitor)
      Creates a new ClassHierarchyTraveler.
      Parameters:
      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.
  • Method Details

    • 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