Class PDFCallGraph
java.lang.Object
com.ibm.wala.examples.drivers.PDFCallGraph
This simple example WALA application builds a call graph and fires off ghostview to visualize a
DOT representation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildPrunedCallGraph
(String appJar, File exclusionFile) static String
findJarFiles
(String[] directories) static boolean
isDirectory
(String appJar) static void
Usage: args = "-appJar [jar file name] {-exclusionFile [exclusionFileName]}" The "jar file name" should be something like "c:/temp/testdata/java_cup.jar"static Process
Usage: args = "-appJar [jar file name] {-exclusionFile [exclusionFileName]}" The "jar file name" should be something like "c:/temp/testdata/java_cup.jar"static Process
static void
Validate that the command-line arguments obey the expected usage.
-
Constructor Details
-
PDFCallGraph
public PDFCallGraph()
-
-
Method Details
-
isDirectory
-
findJarFiles
-
main
Usage: args = "-appJar [jar file name] {-exclusionFile [exclusionFileName]}" The "jar file name" should be something like "c:/temp/testdata/java_cup.jar" -
run
Usage: args = "-appJar [jar file name] {-exclusionFile [exclusionFileName]}" The "jar file name" should be something like "c:/temp/testdata/java_cup.jar" -
run
public static Process run(String appJar, String exclusionFile) throws IllegalArgumentException, CancelException - Parameters:
appJar
- something like "c:/temp/testdata/java_cup.jar"- Throws:
IllegalArgumentException
CancelException
-
buildPrunedCallGraph
public static Graph<CGNode> buildPrunedCallGraph(String appJar, File exclusionFile) throws WalaException, IllegalArgumentException, CancelException, IOException - Parameters:
appJar
- something like "c:/temp/testdata/java_cup.jar"- Returns:
- a call graph
- Throws:
WalaException
IllegalArgumentException
CancelException
IOException
-
pruneForAppLoader
-
validateCommandLine
Validate that the command-line arguments obey the expected usage.Usage:
- args[0] : "-appJar"
- args[1] : something like "c:/temp/testdata/java_cup.jar"
- Throws:
UnsupportedOperationException
- if command-line is malformed.
-