|
||||||||||
| 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.CHACallGraph
public class CHACallGraph
A simple call graph implementation based on class-hierarchy analysis with optional rapid type analysis.
| Nested Class Summary |
|---|
| 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 interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary | |
|---|---|
protected Set |
classes
|
static CHACallGraph |
INSTANCE
|
| Fields inherited from class jwutil.collections.UnmodifiableMultiMap |
|---|
DEFAULT_HISTOGRAM_SIZE |
| Constructor Summary | |
|---|---|
protected |
CHACallGraph()
|
|
CHACallGraph(Set classes)
Construct a call graph assuming only the given types are used by the program, i.e. |
| Method Summary | |
|---|---|
Collection |
getRoots()
Returns the collection of root methods for this call graph. |
Collection |
getTargetMethods(Object context,
ProgramLocation callSite)
Returns the possible target methods of the given call site under the given context. |
void |
setRoots(Collection roots)
Sets up the root methods to be the given set. |
| Methods inherited from class jwutil.collections.UnmodifiableMultiMap |
|---|
add, addAll, addAll, clear, computeHistogram, computeHistogram, entrySetHelper, proxy, put, putAll, remove, remove, removeAll, retainAll |
| Methods inherited from class java.util.AbstractMap |
|---|
clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, size, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, 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, keySet, values |
| Field Detail |
|---|
public static final CHACallGraph INSTANCE
protected final Set classes
| Constructor Detail |
|---|
public CHACallGraph(Set classes)
classes - set of types from which to build the call graphprotected CHACallGraph()
| Method Detail |
|---|
public Collection getTargetMethods(Object context,
ProgramLocation callSite)
CallGraph
getTargetMethods in class CallGraphCallGraph.getTargetMethods(java.lang.Object, joeq.Compiler.Analysis.IPA.ProgramLocation)public Collection getRoots()
CallGraph
getRoots in interface jwutil.graphs.GraphgetRoots in class CallGraphpublic void setRoots(Collection roots)
CallGraph
setRoots in class CallGraphroots - collection of root methods
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||