|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
jwutil.collections.UnmodifiableMultiMap
joeq.Compiler.Quad.CallGraph
joeq.Compiler.Quad.LoadedCallGraph
public class LoadedCallGraph
A call graph that is loaded from a file.
| Nested Class Summary | |
|---|---|
static class |
LoadedCallGraph.SortedArraySetFactory
|
| Nested classes/interfaces inherited from class joeq.Compiler.Quad.CallGraph |
|---|
CallGraph.CallGraphCSNavigator, CallGraph.CallGraphMap, CallGraph.CallGraphMethodNavigator, CallGraph.CallSiteMap, CallGraph.CallTargetMap |
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Field Summary | |
|---|---|
static java.util.Comparator |
callsite_comparator
|
static java.util.Comparator |
member_comparator
|
static LoadedCallGraph.SortedArraySetFactory |
sortedArraySetFactory
|
static jwutil.collections.MapFactory |
treeMapFactory
|
static java.util.Comparator |
type_comparator
|
| Fields inherited from class jwutil.collections.UnmodifiableMultiMap |
|---|
DEFAULT_HISTOGRAM_SIZE |
| Constructor Summary | |
|---|---|
LoadedCallGraph(java.lang.String filename)
|
|
| Method Summary | |
|---|---|
void |
add(jq_Method caller,
int bcIndex,
jq_Method callee)
|
java.util.Set |
entrySet()
|
java.util.Collection |
getAllCallSites()
Returns the collection of all call sites in the call graph. |
java.util.Collection |
getAllMethods()
Returns the collection of all methods in the call graph. |
java.util.Collection |
getCallees(jq_Method caller)
Returns the set of methods that are called by the given method. |
java.util.Collection |
getCallerMethods(jq_Method callee)
Returns the set of methods that can call the given method. |
java.util.Collection |
getCallers(jq_Method callee)
Returns the set of call sites that can call the given method. |
java.util.Collection |
getCallSites(jq_Method caller)
Returns the set of call sites in the given method. |
java.util.Collection |
getRoots()
Returns the collection of root methods for this call graph. |
java.util.Collection |
getTargetMethods(java.lang.Object context,
ProgramLocation callSite)
Returns the possible target methods of the given call site under the given context. |
java.util.Set |
keySet()
|
static ProgramLocation |
mapCall(ProgramLocation callSite)
|
void |
setRoots(java.util.Collection roots)
Sets up the root methods to be the given set. |
static void |
write(CallGraph cg,
java.io.BufferedWriter out)
|
| Methods inherited from class joeq.Compiler.Quad.CallGraph |
|---|
calculateCallerRelation, calculateEdgeRelation, calculateReachableMethods, contains, findDepths, getCallees, getCallGraphMap, getCallSiteMap, getCallSiteNavigator, getCallSites, getCallSites0, getCallSites0, getCallSites1, getMethodNavigator, getNavigator, getTargetMethod, getTargetMethods, getValues, makeCallGraph, numberOfTargetMethods, numberOfTargetMethods, toString |
| Methods inherited from class jwutil.collections.UnmodifiableMultiMap |
|---|
add, addAll, addAll, clear, computeHistogram, computeHistogram, proxy, put, putAll, remove, remove, removeAll, retainAll |
| Methods inherited from class java.util.AbstractMap |
|---|
containsKey, containsValue, equals, get, hashCode, isEmpty, size, values |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jwutil.collections.MultiMap |
|---|
get, size |
| Methods inherited from interface java.util.Map |
|---|
containsKey, containsValue, equals, hashCode, isEmpty, values |
| Field Detail |
|---|
public static java.util.Comparator type_comparator
public static java.util.Comparator member_comparator
public static java.util.Comparator callsite_comparator
public static final jwutil.collections.MapFactory treeMapFactory
public static final LoadedCallGraph.SortedArraySetFactory sortedArraySetFactory
| Constructor Detail |
|---|
public LoadedCallGraph(java.lang.String filename)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public static void write(CallGraph cg,
java.io.BufferedWriter out)
throws java.io.IOException
java.io.IOException
public void add(jq_Method caller,
int bcIndex,
jq_Method callee)
public void setRoots(java.util.Collection roots)
CallGraph
setRoots in class CallGraphroots - collection of root methodspublic java.util.Collection getRoots()
CallGraph
getRoots in interface jwutil.graphs.GraphgetRoots in class CallGraph
public java.util.Collection getTargetMethods(java.lang.Object context,
ProgramLocation callSite)
CallGraph
getTargetMethods in class CallGraphpublic java.util.Set entrySet()
entrySet in interface java.util.MapentrySet in interface jwutil.collections.MultiMapentrySet in class CallGraphpublic java.util.Collection getAllCallSites()
CallGraph
getAllCallSites in class CallGraphpublic java.util.Collection getAllMethods()
CallGraph
getAllMethods in class CallGraphpublic java.util.Collection getCallees(jq_Method caller)
CallGraph
getCallees in class CallGraphpublic java.util.Collection getCallers(jq_Method callee)
CallGraph
getCallers in class CallGraphpublic java.util.Collection getCallerMethods(jq_Method callee)
CallGraph
getCallerMethods in class CallGraphpublic java.util.Collection getCallSites(jq_Method caller)
CallGraph
getCallSites in class CallGraphpublic java.util.Set keySet()
keySet in interface java.util.MapkeySet in class java.util.AbstractMappublic static ProgramLocation mapCall(ProgramLocation callSite)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||