public abstract class OverriddenMethodsVisitor extends java.lang.Object implements InheritanceGraphVisitor
Subtypes2.traverseSupertypes(ClassDescriptor, InheritanceGraphVisitor)
method.Constructor and Description |
---|
OverriddenMethodsVisitor(XMethod xmethod)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
XMethod |
getXmethod() |
boolean |
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.
|
protected abstract boolean |
visitOverriddenMethod(XMethod xmethod)
Downcall method: will be called for each method overridden by the derived
method object passed to the constructor.
|
public OverriddenMethodsVisitor(XMethod xmethod)
xmethod
- a derived methodpublic XMethod getXmethod()
public boolean visitClass(ClassDescriptor classDescriptor, XClass xclass)
InheritanceGraphVisitor
visitClass
in interface InheritanceGraphVisitor
classDescriptor
- ClassDescriptor of the class vertexxclass
- XClass object containing information about the class; null if
class cannot be resolvedpublic boolean visitEdge(ClassDescriptor sourceDesc, XClass source, ClassDescriptor targetDesc, XClass target)
InheritanceGraphVisitor
visitEdge
in interface InheritanceGraphVisitor
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 resolvedprotected abstract boolean visitOverriddenMethod(XMethod xmethod)
xmethod
- a method which is overridden by the original derived method,
or is the original derived methodFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.