edu.umd.cs.findbugs

Class SelfCalls

public class SelfCalls extends Object

Build a call graph of the self calls in a class.
Constructor Summary
SelfCalls(ClassContext classContext)
Constructor.
Method Summary
Iterator<Method>calledMethodIterator()
Get an Iterator over self-called methods.
Iterator<CallSite>callSiteIterator()
Get an Iterator over all self call sites.
voidexecute()
Find the self calls.
CallGraphgetCallGraph()
Get the self call graph for the class.
booleanhasSynchronization()
Does this class contain any explicit synchronization?
booleanwantCallsFor(Method method)
Determine whether we are interested in calls for the given method.

Constructor Detail

SelfCalls

public SelfCalls(ClassContext classContext)
Constructor.

Parameters: classContext the ClassContext for the class

Method Detail

calledMethodIterator

public Iterator<Method> calledMethodIterator()
Get an Iterator over self-called methods.

callSiteIterator

public Iterator<CallSite> callSiteIterator()
Get an Iterator over all self call sites.

execute

public void execute()
Find the self calls.

getCallGraph

public CallGraph getCallGraph()
Get the self call graph for the class.

hasSynchronization

public boolean hasSynchronization()
Does this class contain any explicit synchronization?

wantCallsFor

public boolean wantCallsFor(Method method)
Determine whether we are interested in calls for the given method. Subclasses may override. The default version returns true for every method.

Parameters: method the method

Returns: true if we want call sites for the method, false if not

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.