public class ClassHierarchyTraveler extends 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 |
visitLibraryClass(LibraryClass libraryClass) |
void |
visitProgramClass(ProgramClass programClass) |
public 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 visitProgramClass(ProgramClass programClass)
visitProgramClass in interface ClassVisitorpublic void visitLibraryClass(LibraryClass libraryClass)
visitLibraryClass in interface ClassVisitorCopyright © 2015. All Rights Reserved.