Class SourceDirCallGraph
java.lang.Object
com.ibm.wala.cast.java.ecj.util.SourceDirCallGraph
Driver that constructs a call graph for an application specified as a directory of source code.
Example of using the JDT front-end based on ECJ. Useful for getting some code to copy-paste.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doit
(String[] args, SourceDirCallGraph.Processor processor) protected Iterable
<Entrypoint> getEntrypoints
(String mainClass, IClassHierarchy cha) protected ClassLoaderFactory
getLoaderFactory
(AnalysisScope scope) static void
Usage: SourceDirCallGraph -sourceDir file_path -mainClass class_name
-
Constructor Details
-
SourceDirCallGraph
public SourceDirCallGraph()
-
-
Method Details
-
main
public static void main(String[] args) throws ClassHierarchyException, IllegalArgumentException, CallGraphBuilderCancelException, IOException Usage: SourceDirCallGraph -sourceDir file_path -mainClass class_nameIf given -mainClass, uses main() method of class_name as entrypoint. Class name should start with an 'L'.
Example args: -sourceDir /tmp/srcTest -mainClass LFoo
-
getLoaderFactory
-
doit
public void doit(String[] args, SourceDirCallGraph.Processor processor) throws ClassHierarchyException, IllegalArgumentException, CallGraphBuilderCancelException, IOException -
getEntrypoints
-