public class CallGraph extends Object implements Iterable<CallGraphEntry>
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCall(String sourceClass,
String sourceMethod,
String targetClass,
String targetMethod)
add call to the call graph
|
void |
addPublicMethod(String className,
String methodName)
add public methods
|
Set<CallContext> |
getAllContextsFromTargetClass(String className,
String methodName)
computes and returns the call contexts that starts from the target class
and end in the specific method
|
Set<CallGraphEntry> |
getCallsFrom(String owner,
String methodName) |
Set<CallGraphEntry> |
getCallsFromMethod(CallGraphEntry call) |
Set<String> |
getClasses() |
Set<String> |
getClassesUnderTest() |
String |
getClassName() |
ReverseCallGraph |
getGraph() |
Set<CallContext> |
getMethodEntryPoint(String className,
String methodName)
computes and returns the call contexts of the specific method
|
Set<CallGraphEntry> |
getViewOfCurrentMethods() |
boolean |
hasCall(String owner,
String methodName,
String targetClass,
String targetMethod) |
boolean |
hasMethod(String classname,
String methodName) |
boolean |
isCalledClass(String className)
Determine if className can be reached from the class under test
|
boolean |
isCalledClassOld(String className) |
boolean |
isCalledMethod(String className,
String methodName)
Determine if methodName of className can be called through the target
class
|
boolean |
isCalledMethodOld(String className,
String methodName) |
Iterator<CallGraphEntry> |
iterator() |
void |
removeClass(CallGraphEntry vertex) |
void |
removeClasses(Collection<CallGraphEntry> vertexes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic CallGraph(String className)
public ReverseCallGraph getGraph()
public void removeClasses(Collection<CallGraphEntry> vertexes)
public void removeClass(CallGraphEntry vertex)
public void addPublicMethod(String className, String methodName)
className - methodName - public boolean addCall(String sourceClass, String sourceMethod, String targetClass, String targetMethod)
sourceClass - sourceMethod - targetClass - targetMethod - public boolean hasMethod(String classname, String methodName)
public boolean hasCall(String owner, String methodName, String targetClass, String targetMethod)
public Set<CallGraphEntry> getCallsFrom(String owner, String methodName)
public Set<CallGraphEntry> getCallsFromMethod(CallGraphEntry call)
public Set<CallContext> getMethodEntryPoint(String className, String methodName)
className - methodName - public Set<CallContext> getAllContextsFromTargetClass(String className, String methodName)
className - methodName - public String getClassName()
public Set<String> getClassesUnderTest()
public boolean isCalledClass(String className)
className - public boolean isCalledClassOld(String className)
public boolean isCalledMethod(String className, String methodName)
className - methodName - public Iterator<CallGraphEntry> iterator()
iterator in interface Iterable<CallGraphEntry>public Set<CallGraphEntry> getViewOfCurrentMethods()
Copyright © 2010–2017 EvoSuite. All rights reserved.