public class ClassHierarchyTraveler extends java.lang.Object implements ClassVisitor
ClassVisitor lets a given ClassVisitor
optionally travel to the visited class, its superclass, its interfaces, and
its subclasses.| Constructor and Description |
|---|
ClassHierarchyTraveler(boolean visitThisClass,
boolean visitSuperClass,
boolean visitInterfaces,
boolean visitSubclasses,
ClassVisitor classVisitor)
Creates a new ClassHierarchyTraveler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visitAnyClass(Clazz clazz)
Visits any Clazz instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitLibraryClass, visitProgramClasspublic ClassHierarchyTraveler(boolean visitThisClass,
boolean visitSuperClass,
boolean visitInterfaces,
boolean visitSubclasses,
ClassVisitor classVisitor)
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.public void visitAnyClass(Clazz clazz)
ClassVisitorvisitAnyClass in interface ClassVisitor