Package proguard.classfile.visitor
Class ClassHierarchyTraveler
- java.lang.Object
-
- proguard.classfile.visitor.ClassHierarchyTraveler
-
- All Implemented Interfaces:
ClassVisitor
public class ClassHierarchyTraveler extends java.lang.Object implements ClassVisitor
ThisClassVisitorlets a givenClassVisitoroptionally travel to the visited class, its superclass, its interfaces, and its subclasses.
-
-
Constructor Summary
Constructors Constructor Description ClassHierarchyTraveler(boolean visitThisClass, boolean visitSuperClass, boolean visitInterfaces, boolean visitSubclasses, ClassVisitor classVisitor)Creates a new ClassHierarchyTraveler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisitAnyClass(Clazz clazz)Visits any Clazz instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.classfile.visitor.ClassVisitor
visitLibraryClass, visitProgramClass
-
-
-
-
Constructor Detail
-
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- theClassVisitorto which visits will be delegated.
-
-
Method Detail
-
visitAnyClass
public void visitAnyClass(Clazz clazz)
Description copied from interface:ClassVisitorVisits any Clazz instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyClassin interfaceClassVisitor
-
-