com.ibm.wala.examples.drivers
Class SWTCallGraph

java.lang.Object
  extended by com.ibm.wala.examples.drivers.SWTCallGraph

public class SWTCallGraph
extends java.lang.Object

This application is a WALA client: it invokes an SWT TreeViewer to visualize a Call Graph


Constructor Summary
SWTCallGraph()
           
 
Method Summary
static java.lang.String findJarFiles(java.lang.String[] directories)
           
static void main(java.lang.String[] args)
          Usage: SWTCallGraph -appJar [jar file name] The "jar file name" should be something like "c:/temp/testdata/java_cup.jar" If it's a directory, then we'll try to find all jar files under that directory.
static org.eclipse.jface.window.ApplicationWindow run(java.util.Properties p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWTCallGraph

public SWTCallGraph()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws WalaException
Usage: SWTCallGraph -appJar [jar file name] The "jar file name" should be something like "c:/temp/testdata/java_cup.jar" If it's a directory, then we'll try to find all jar files under that directory.

Parameters:
args -
Throws:
WalaException

run

public static org.eclipse.jface.window.ApplicationWindow run(java.util.Properties p)
                                                      throws WalaException
Parameters:
p - should contain at least the following properties:
  • appJar should be something like "c:/temp/testdata/java_cup.jar"
  • algorithm (optional) can be one of:
    • "ZERO_CFA" (default value)
    • "RTA"
Throws:
WalaException

findJarFiles

public static java.lang.String findJarFiles(java.lang.String[] directories)
                                     throws WalaException
Throws:
WalaException