|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.ba.ch.OverriddenMethodsVisitor
public abstract class OverriddenMethodsVisitor
This class implements a best-effort visitation
of all methods overridden by a given derived instance method.
Objects extending this class can be used with the
Subtypes2.traverseSupertypes(ClassDescriptor, InheritanceGraphVisitor)
method.
| Constructor Summary | |
|---|---|
OverriddenMethodsVisitor(XMethod xmethod)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OverriddenMethodsVisitor(XMethod xmethod)
xmethod - a derived method| Method Detail |
|---|
public XMethod getXmethod()
public boolean visitClass(ClassDescriptor classDescriptor,
XClass xclass)
InheritanceGraphVisitor
visitClass in interface InheritanceGraphVisitorclassDescriptor - ClassDescriptor of the class vertexxclass - XClass object containing information about the class; null if class cannot be resolved
public boolean visitEdge(ClassDescriptor sourceDesc,
XClass source,
ClassDescriptor targetDesc,
XClass target)
InheritanceGraphVisitor
visitEdge in interface InheritanceGraphVisitorsourceDesc - 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
protected abstract boolean visitOverriddenMethod(XMethod xmethod)
xmethod - a method which is overridden by the
original derived method, or is the original derived method
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||