|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.SelfCalls
public class SelfCalls
Build a call graph of the self calls in a class.
Field Summary | |
---|---|
private java.util.HashSet<org.apache.bcel.classfile.Method> |
calledMethodSet
|
private CallGraph |
callGraph
|
private ClassContext |
classContext
|
private static boolean |
DEBUG
|
private boolean |
hasSynchronization
|
Constructor Summary | |
---|---|
SelfCalls(ClassContext classContext)
Constructor. |
Method Summary | |
---|---|
java.util.Iterator<org.apache.bcel.classfile.Method> |
calledMethodIterator()
Get an Iterator over self-called methods. |
java.util.Iterator<CallSite> |
callSiteIterator()
Get an Iterator over all self call sites. |
void |
execute()
Find the self calls. |
CallGraph |
getCallGraph()
Get the self call graph for the class. |
boolean |
hasSynchronization()
Does this class contain any explicit synchronization? |
private org.apache.bcel.classfile.Method |
isSelfCall(org.apache.bcel.generic.InvokeInstruction inv)
Is the given instruction a self-call? |
private void |
scan(CallGraphNode node)
Scan a method for self call sites. |
boolean |
wantCallsFor(org.apache.bcel.classfile.Method method)
Determine whether we are interested in calls for the given method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final boolean DEBUG
private ClassContext classContext
private CallGraph callGraph
private java.util.HashSet<org.apache.bcel.classfile.Method> calledMethodSet
private boolean hasSynchronization
Constructor Detail |
---|
public SelfCalls(ClassContext classContext)
classContext
- the ClassContext for the classMethod Detail |
---|
public void execute() throws CFGBuilderException
CFGBuilderException
public CallGraph getCallGraph()
public java.util.Iterator<org.apache.bcel.classfile.Method> calledMethodIterator()
public boolean wantCallsFor(org.apache.bcel.classfile.Method method)
method
- the method
public java.util.Iterator<CallSite> callSiteIterator()
public boolean hasSynchronization()
private void scan(CallGraphNode node) throws CFGBuilderException
node
- the CallGraphNode for the method to be scanned
CFGBuilderException
private org.apache.bcel.classfile.Method isSelfCall(org.apache.bcel.generic.InvokeInstruction inv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |