Package edu.umd.cs.findbugs.ba.ch
Interface InheritanceGraphVisitor
public interface InheritanceGraphVisitor
Visitor interface for traversals of the inheritance graph.
- Author:
- David Hovemeyer
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
visitClass
(ClassDescriptor classDescriptor, XClass xclass) Visit a class vertex in the inheritance graph.boolean
visitEdge
(ClassDescriptor sourceDesc, XClass source, ClassDescriptor targetDesc, XClass target) Visit an inheritance edge in the inheritance graph.
-
Method Details
-
visitClass
Visit a class vertex in the inheritance graph.- Parameters:
classDescriptor
- ClassDescriptor of the class vertexxclass
- XClass object containing information about the class; null if class cannot be resolved- Returns:
- true if traversal should continue, false otherwise
-
visitEdge
boolean visitEdge(ClassDescriptor sourceDesc, XClass source, ClassDescriptor targetDesc, @CheckForNull XClass target) Visit an inheritance edge in the inheritance graph.- Parameters:
sourceDesc
- ClassDescriptor of the source class (subtype)source
- XClass object containing information about source classtargetDesc
- ClassDescriptor of the target class (supertype)target
- XClass object containing information about target class; null if class cannot be resolved- Returns:
- true if traversal should continue, false otherwise
-